Closed 651juan closed 3 years ago
Can you tell me which version of Axon Server you are using, and what index type?
Using ee v4.4.7 with JUMP_SKIP_INDEX.
The situation here is an aggregate with a huge number of snapshots (estimated around 680K) with many of these snapshots in the same segment. While reading the snapshots for the aggregate it first needs to find the index positions of the snapshots, and then will start to return the snapshots (most recent first). The snapshots are returned in a stream, which is only closed when the last snapshot is returned. Using swagger or curl will return with an error when the timeout is exceeded. When calling the service directly from chrome it returns the first values.
When invoking the GET endpoint
{url}/v1/snapshots?aggregateId={your-aggregate-id}
the request timesout after 30s producing the following warns:Async request timed out
Resolved [org.springframework.web.context.request.async.AsyncRequestTimeoutException]
a few seconds later this exception is thrown:
This occurs on an aggregate with a large number of events. Using initialSequence & maxSequence to create a smaller search window does not help.