We have a monolithic application. TEP is skipping events to be processed in Axon Framework 4.6. We have a CustomJpaEventStorageEngine which processes events in chunk of 1000 as we use Oracle Database (which gives error if IN query is using more than 1000 elements). We are still calling super.fetchTrackedEvents(gapAwareTrackingToken, batchSize) where we pass gapAwareTrackingToken = GapAwareTrackingToken.newInstance(token.getIndex(), gapChunk) for 1000 chunk. Thread count = 1. We tried manipulating below properties but no luck as well- JpaEventStorageEngine.builder().gapTimeout(120000).gapCleaningThreshold(1000).eventSerializer(serializer()).snapshotSerializer(serializer())
Kindly assist or suggest some solution.