Skip to content

Conversation

@inelpandzic
Copy link
Collaborator

@inelpandzic inelpandzic commented Mar 14, 2025

https://perconadev.atlassian.net/browse/PML-78

Fail replication on cursor error and if the error is Resume of change stream was not possible, as the resume point may no longer be in the oplog. then add the ability to finalize replication if this error is cought.

Add new option/request field for finalize command/endpoint, allow-on-oplog-oor-error / allowOnOplogOorError.

So if the error mentioned above happens, user can do the following to finalize state if that is applicable:

percona-mongolink finalize --allow-on-oplog-oor-error

Besides this, PR fixes next:

  • Don't allow finalization if state is failed (except with the option mentioned above)
  • Fix deadlock that happens when trying to do pause replication while finalizing
  • Small refactor
  • Adds github workflow to generate PR badge with Jira task link

@inelpandzic
Copy link
Collaborator Author

I'm not totally happy with this option/request field name (allow-on-oplog-oor-error / allowOnOplogOorError), @defbin all ideas are welcome.

@inelpandzic inelpandzic requested a review from defbin March 14, 2025 04:48
@inelpandzic inelpandzic merged commit dfefd0d into main Mar 14, 2025
5 checks passed
@inelpandzic inelpandzic deleted the PML-78-oplog-out-of-range branch March 14, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants