I am using domain persistence using standard repository GenericJpaRepository to store the state of aggregate. My eventstore is AxonDB.
I observed one issue here where if I kill the axondb process, the next command that updates the aggregates (or create new aggregate) stores the state of aggregate in database although I get command processing failed message in the logs.
However next command after this one does not store the state and transaction is rolled back correctly.
May be prepare_commit phase is not checking if the connection is still active to the axondb instance.
Attaching logs for first command after axondb shutdown and second command after axondb shutdown.
FirstCommandAfterAxonDBShutdown.log (5.93 KB)
SecondCommandAfterAxonDBShutdown.log (6.31 KB)