[backport 3.4] replication: fix wrong assumption in box.ctl.make_bootstrap_leader#11909
Merged
sergepetrenko merged 1 commit intorelease/3.4from Oct 10, 2025
Merged
Conversation
`box_make_bootstrap_leader` assumes that by the time the instance UID is assigned, the bootstrap strategy is also assigned. However, this assumption does not hold during recovery, since the instance UID is assigned during engine recovery from the snapshot at an earlier stage of recovery, and the fiber executing `box.cfg` yields because of `iproto_do_cfg` before the bootstrap strategy is set. To fix this, let's throw an error iff the bootstrap strategy is set, and it is not `supervised`. Closes #11704 NO_DOC=<bugfix> (cherry picked from commit c5ca705)
box.ctl.make_bootstrap_leaderbox.ctl.make_bootstrap_leader
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(This PR is a backport of #11862 to
release/3.4to a future3.4.2release.)This patch fixes a wrong assumption about bootstrap during recovery in
box.ctl.make_bootstrap_leader.Closes #11704