mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
* CORDA-3194 Do not allow killed flows back into the hospital This change has been made to prevent killed flows from being added back to the hospital after being forcibly removed by `killFlow`. Not doing so, could leave references to a flow inside of the hospital, which is not the correct behaviour. `killFlow` now sets a flow's `StatemachineState.isRemoved` to true. This check is then used in `StaffedFlowHospital` and the `DumpHistoryOnErrorInterceptor`. * CORDA-3194 Log different message for transition error due to killed flow When a flow is killed, its checkpoint is deleted. Currently, the statemachine will still try a process the next event even if it has been killed. This can lead to an error when trying to update the deleted checkpoint. The exception thrown from this is logged out. An if statement has been added to log a different message at debug level if it is due to an update error for a killed flow. This is done to not alarm node operators of the exception.