We’re using Axon Server community edition and Postgres for our projections and JPATokenStore on an AWS EKS cluster - kubernetes and helm:
When we upgrade our helm charts causing AxonServer and our Axonified Spring Boot application (pods) to restart, we end up in a state where event handlers are no longer firing. In remote debug we can see that the commands and EventSourcingHandlers are being invoked properly, but none of our EventHandlers are ever invoked.
We seem to have some success by manually dropping the TOKEN_ENTRY table in the Postgres database. We are speculating that by restarting the AxonServer but leaving the TokenStore untouched, we are probably breaking the EventProcessor. But then again, we’re not deleting the PV between AxonServer restarts, so it’s unclear.
What should we expect when restarting our service and AxonServer? Should we be dropping TOKEN_ENTRY tables whenever the AxonServer restarts? Should we only do that when the AxonServer volume (disk space) is cleaned? What are the best practices here?