allthingssecurity commented on code in PR #30763:
URL: https://github.com/apache/camel/pull/30763#discussion_r4689191609
##########
components/camel-mongodb/src/main/docs/mongodb-component.adoc:
##########
@@ -1340,6 +1340,18 @@
from("mongodb:myDb?consumerType=changeStreams&database=flights&collection=ticket
You can use only endpoint options, only route-level resumable configuration,
or both depending on your deployment requirements.
+While no change of the collection arrives, the change stream still reads the
oplog, which the other collections of the
+replica set write. The consumer then takes the post batch resume token of the
change stream, the position up to which
+it has read the oplog, after each getMore that returns no change (MongoDB
waits up to one second for a change), as the
+token that a new change stream resumes after, and stores it in the
`changeStreamTokenRepository`. It does so only when
+the exchange of the last change it read completed, so a change whose exchange
failed is still read again by a new
+change stream, unless a later change completed (as before, the token of that
change already passes the failed one).
+The token is not passed to a resume strategy, which only gets the tokens of
the exchanges.
Review Comment:
Thanks, split it into three shorter paragraphs in fdec31ffea42 (what is
stored and when, why a failed exchange is read again, and that resume
strategies do not get this token). Same meaning, catalog copy updated too.
--
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]