-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 6032 - Replication broken after backup restore (#6035)
Replication is broken after doing an offline backup then later on an online or offline restore Note: with online backup changelog is discarded at restore time (because it has no purge RUV) In fact there are multiple cause: [1] _cl5CICbInit is building wrongly the changelog RUVs so changelog is recreated [2] Changelog is not cleared when it is "Recreated because of wrong test in dbmdb_back_ctrl [3] Replication keep alive get created before the replica get back in sync. This creates missing csn. Solution: [1] Fix _cl5CICbInit to get the csn from the changelog record key and store properly the min and max in the context. [2] Replace invalid test by a proper one. [3] Change keep alive update starting delay from 2 seconds to 10 minutes (i.e twice the maximum backoff timeout) To let a chance for the other supplier to replay the missing changes. Also added/modified some more data when replication log are enabled Note: this is a partial fix as a proper "resync after db reload" is not handled so this left issues (typically because of the plugin internal operations like memberof plugin or if there are lots of changes to replay) but at least is is enough for the CI test ... Issue: #6032 Reviewed by: @droideck, @tbordaz (Thanks!)
- Loading branch information
1 parent
9e37b21
commit 9e595d4
Showing
4 changed files
with
99 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters