davsclaus commented on code in PR #30763:
URL: https://github.com/apache/camel/pull/30763#discussion_r4691368840


##########
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:
   Fixed in 152c58f6: the paragraph is split into three short ones, and the 
catalog copy matches. The remaining "as before" wording is point 2 of my review.
   
   _Claude Code on behalf of Claus Ibsen_



-- 
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]

Reply via email to