Sometimes receiving "Query did not yield expected number of results."

Hi folks,

in my application I’m sometimes expecting the following error:

org.axonframework.axonserver.connector.query.AxonServerQueryDispatchException: Query did not yield the expected number of results.
	at org.axonframework.axonserver.connector.query.AxonServerQueryBus$ResponseProcessingTask.run(AxonServerQueryBus.java:766) ~[axon-server-connector-4.5.12.jar:4.5.12]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]

I’m running Axon Framework 4.5.12 using latest Axon Server CE (4.5.12 in docker) on Java 11, Spring Boot 2.7.1, Ubuntu 22.04. I have a quite powerful machine and almost no load. If I repeat the same query about 20 times, I’m for sure getting the exception above. And then it works again without changing anything.

The query is a simple query (no subscription, no scatter-gather). I have about five of them receiving different response types and the error seems to be random appearing and escaping.

There is nothing in log of AxonServer.

Any ideas?

Cheers,

Simon