Enhancement #1022

bag-record should terminate with non-zero exit code when something goes wrong

Added by J. Moringen almost 12 years ago. Updated over 11 years ago.

Status:ResolvedStart date:06/23/2012
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:-
Target version:Robotics Service Bus - rsb-0.7

Description

Examples include:
  • Spread connection is lost during recording
  • Event encoding fails

Related issues

Related to Robotics Service Bus - Tasks #1037: Implement error handling subsystem Resolved 06/25/2012

Associated revisions

Revision 2a82bd60
Added by J. Moringen over 11 years ago

Proper error policy handling in src/rsb/*-connection.lisp
refs #1022
  • src/rsb/bag-connection.lisp (bag-connection): added superclass
    `error-policy-mixin'
    (shared-initialize :after bag-connection t): new method; force error
    policy update
    (setf processor-error-policy :before t bag-connection): install new
    error policy in all `channel-connection' s
    (setf processor-error-policy :before t replay-bag-connection):
    install new error policy in replay strategy
  • src/rsb/channel-connection.lisp (channel-connection): added superclass
    `error-policy-mixin'
    (shared-initialize :after participant-channel-connection t): new
    method; force error policy update
    (setf processor-error-policy :before t participant-channel-connection):
    install new error policy in participant
  • src/rsb/replay/replay-restart-mixin.lisp
    (replay :around replay-bag-connection replay-restart-mixin):
    continue restart accepts optional condition argument

Revision 5beb7ab8
Added by J. Moringen over 11 years ago

Added toplevel error handling in bag-*/main.lisp
refs #1022
  • bag-cat/main.lisp (update-synopsis): call
    `make-error-handling-options' to add error-handling-related
    commandline options
    (main): use `with-error-policy'
  • bag-info/main.lisp: similar
  • bag-merge/main.lisp: similar
  • bag-play/main.lisp: similar
  • bag-record/main.lisp (update-synopsis): similar
    (main): use `with-error-policy; install error policy in the
    connection

Revision ce476f94
Added by J. Moringen over 11 years ago

Backport: Proper error policy handling in src/rsb/*-connection.lisp
refs #1022
  • src/rsb/bag-connection.lisp (bag-connection): added superclass
    `error-policy-mixin'
    (shared-initialize :after bag-connection t): new method; force error
    policy update
    (setf processor-error-policy :before t bag-connection): install new
    error policy in all `channel-connection' s
    (setf processor-error-policy :before t replay-bag-connection):
    install new error policy in replay strategy
  • src/rsb/channel-connection.lisp (channel-connection): added superclass
    `error-policy-mixin'
    (shared-initialize :after participant-channel-connection t): new
    method; force error policy update
    (setf processor-error-policy :before t participant-channel-connection):
    install new error policy in participant
  • src/rsb/replay/replay-restart-mixin.lisp
    (replay :around replay-bag-connection replay-restart-mixin):
    continue restart accepts optional condition argument

Revision 7f3f29d0
Added by J. Moringen over 11 years ago

Backport: Added toplevel error handling in bag-*/main.lisp
refs #1022
  • bag-cat/main.lisp (update-synopsis): call
    `make-error-handling-options' to add error-handling-related
    commandline options
    (main): use `with-error-policy'
  • bag-info/main.lisp: similar
  • bag-merge/main.lisp: similar
  • bag-play/main.lisp: similar
  • bag-record/main.lisp (update-synopsis): similar
    (main): use `with-error-policy; install error policy in the
    connection

History

#1 Updated by J. Moringen almost 12 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

#2 Updated by J. Moringen over 11 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 20 to 100

Also available in: Atom PDF