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$ ~[axon-server-connector-4.5.12.jar:4.5.12]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$ ~[na:na]
	at java.base/ ~[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?