Skip to content

[backport 3.4] replication: fix wrong assumption in box.ctl.make_bootstrap_leader#11909

Merged
sergepetrenko merged 1 commit intorelease/3.4from
backport/release/3.4/11862
Oct 10, 2025
Merged

[backport 3.4] replication: fix wrong assumption in box.ctl.make_bootstrap_leader#11909
sergepetrenko merged 1 commit intorelease/3.4from
backport/release/3.4/11862

Conversation

@TarantoolBot
Copy link
Collaborator

@TarantoolBot TarantoolBot commented Oct 10, 2025

(This PR is a backport of #11862 to release/3.4 to a future 3.4.2 release.)


This patch fixes a wrong assumption about bootstrap during recovery in box.ctl.make_bootstrap_leader.

Closes #11704

`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)
@TarantoolBot TarantoolBot requested a review from a team as a code owner October 10, 2025 12:22
@TarantoolBot TarantoolBot changed the title [Backport release/3.4] replication: fix wrong assumption in box.ctl.make_bootstrap_leader [backport 3.4] replication: fix wrong assumption in box.ctl.make_bootstrap_leader Oct 10, 2025
@github-actions
Copy link

Coverage Status

coverage: 87.546% (-0.02%) from 87.561%
when pulling 0082f0a on backport/release/3.4/11862
into 2e979d5
on release/3.4
.

@sergepetrenko sergepetrenko merged commit cde76ee into release/3.4 Oct 10, 2025
24 of 25 checks passed
@sergepetrenko sergepetrenko deleted the backport/release/3.4/11862 branch October 10, 2025 13:22
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