gnodet commented on PR #31340: URL: https://github.com/apache/camel/pull/31340#issuecomment-7409042160
**On the consumer validation reordering:** The fix to resolve `dbConsumerType` before calling `validateConsumerOptions()` is crucial - the original code validated before knowing the consumer type, so the tailable-specific checks never applied. This meant endpoints started without required options like `tailTrackIncreasingField`, causing them to re-read entire collections on every cursor refresh. The validation now correctly checks `dbConsumerType == MongoDbConsumerType.tailable` to enforce tailable-specific requirements. Also good catch adding the `consumerType` check to `validateProducerOptions()` - the original only checked `dbConsumerType` which wouldn't catch user-provided consumer options on producer endpoints. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
