Petals CDK

The CDK should revert component state in case of failure of component init and start

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.5.0
  • Fix Version/s: 5.6.0
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The JBI specification is not so clear about that, but it is relevant to think it is the responsibility of the component to take care its own state in case of failure of init and start.

    So, mirroring the behaviour of the CDK in PETALSCDK-167, if the execution of doInit or doStart fails, then the opposite operation doShutdown or doStop will be called.

    In opposition with PETALSCDK-166, these methods should still thrown an exception and the component will be put in state UNKNOWN.

    Show
    The JBI specification is not so clear about that, but it is relevant to think it is the responsibility of the component to take care its own state in case of failure of init and start. So, mirroring the behaviour of the CDK in PETALSCDK-167, if the execution of doInit or doStart fails, then the opposite operation doShutdown or doStop will be called. In opposition with PETALSCDK-166, these methods should still thrown an exception and the component will be put in state UNKNOWN.
  • Environment:
    -

Issue Links

People

Dates

  • Created:
    Tue, 8 Mar 2016 - 15:13:02 +0100
    Updated:
    Tue, 8 Mar 2016 - 17:11:31 +0100
    Resolved:
    Tue, 8 Mar 2016 - 17:11:31 +0100