-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle expired resumeTokens #4
Comments
To be more precise, you can resume a Change Stream only when the resume token used for the change steam is present in the OPLOG. Oplot size is configurable by replSetResizeOplog and can have a minimum time to preserve entries. https://www.mongodb.com/docs/manual/reference/command/replSetResizeOplog/ |
resumeTokens are now taken from the cursor which should prevent us from "losing" the resumeToken to the oplog if the applciation is running. I'm keeping this open as I need to implement handling cases where application is down and cannot use the token that is stored in the config. |
* Added support for handling expired tokens gently (start fresh)
…me-tokens Handle expired resumeTokens #4
Handle cases, where the resumeToken is expired (usually expires after 48 hours and is deleted from opLog in MongoDB - making it unusable)
The text was updated successfully, but these errors were encountered: