mirror of
https://github.com/corda/corda.git
synced 2024-12-20 21:43:14 +00:00
5d42b8847c
Integrate `DBFlowException` with the rest of the checkpoint schema, so now we are saving the flow's exception result in the database. Making statemachine not remove `FAILED` flows' checkpoints from the database if they are started with a clientId. Retrieve the DBFlowException from the database to construct a `FlowStateMachineHandle` future and complete exceptionally the flow's result future for requests (`startFlowDynamicWithClientId`) that pick FAILED flows , started with client id, of status Removed. On killing a flow the client id mapping of the flow gets removed. The storage serialiser is used for serialising exceptions. Note, that if an exception cannot be serialised, it will not fail and will instead be stored as a `CordaRuntimeException`. This could be improved in future changes. |
||
---|---|---|
.. | ||
smoke-test/kotlin/net/corda/coretests | ||
test |