Hello!
Need help to understand is it a bug or normal behavior on AxonServer restart action.
We have the following env:
- AxonServer 4.3.1 (running in k8s stateful set. manifest was used from the official doc)
- Spring Boot app with axon-spring-boot-starter 4.3.1
The situation by steps(for running instance of AxonServer):
- Spring Boot application starts with the following logs:
12:44:24 [main] INFO o.a.a.c.AxonServerConnectionManager - Requesting connection details from localhost:8124
12:44:25 [main] INFO o.a.a.c.AxonServerConnectionManager - Reusing existing channel
12:44:25 [main] INFO o.a.a.c.AxonServerConnectionManager - Re-subscribing commands and queries
12:44:25 [main] INFO o.a.a.c.query.AxonServerQueryBus - Creating new query stream subscriber
12:44:25 [main] INFO o.a.a.c.command.AxonServerCommandBus - Creating new command stream subscriber
- In Axon dashboard I’m able to see available list of commands and queries. Then AxonServer restarts
- Spring Boot app becomes reconnect to AxonServer, and when connection is established prints the following logs:
12:53:01 [AxonServerConnectionManager-0] INFO o.a.a.c.AxonServerConnectionManager - Re-subscribing commands and queries
12:53:01 [AxonServerConnectionManager-0] INFO o.a.a.c.command.AxonServerCommandBus - Resubscribing Command handlers with AxonServer
12:53:01 [AxonServerConnectionManager-0] INFO o.a.a.c.command.AxonServerCommandBus - Creating new command stream subscriber
Here we didn’t see a message like “Creating new query stream subscriber”, so after successful reconnection, there are no queries in the Axon dashboard. Since I’m no able to push queries via queryGateway, because no @QueryHandler is registered after restart.
P.S with command subscribers, everything is good. It shows commands in the dashboard and handlers still working.