We have migrated recently from mongo db to azure mongodb which is cosmosDb.
We are using axon framework for storing events with the
axon version 4.1.1,
axon-mongo version 4.4 and
spring-boot version 2.3.0.RELEASE.
With the earlier mongodb, the collections domain events and saga was getting created automatically. The events and sagas is populated correctly without any issues.
But after the migration, few domain events are getting created but not all and also I can see ‘sagas’ collection is not creating automatically.
I created the sagas collection manually in the db but it didn’t work and I am getting the following errors
We are getting this exception when our application is booting up:
[agaProcessor]-0] o.a.e.TrackingEventProcessor: Fetch Segments for Processor ‘…SagaProcessor’ failed: Query failed with error code 2 and error message 'Error=2, Details='Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 09ec2c08-aed9-4cc9-8fdd-5f30f5e5121e; Reason: (Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 09ec2c08-aed9-4cc9-8fdd-5f30f5e5121e; Reason: (Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: 09ec2c08-aed9-4cc9-8fdd-5f30f5e5121e; Reason: (Message: {"Errors":[“The index path corresponding to the specified order-by item is excluded.”]}
Seems the issue is in the saga but not very clear.
Any help will be highly appreciated.