Skip to content

test: stabilize replication rebootstrap and bootstrap_leader tests #10988

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

Merged

Conversation

sergepetrenko
Copy link
Collaborator

The commit 89cd7f4 ("replication: do not account booting replicas in sync quorum") allowed replicas to leave orphan mode without waiting for everyone listed in box.cfg.replication.

As a result, bootstrap_leader test started exiting too early, because it relied on one of the replicas staying in orphan mode until all the others finish bootstrap. Fix it.

Also, remove "memtx" and "vinyl" configuration for the test. There is nothing in the test related to engines.

While we're at it, remove the test from fragile list. It hasn't flaked since long ago, excluding the last couple of weeks, which's fixed now.

Closes tarantool/tarantool-qa#63

NO_CHANGELOG=flaky test
NO_DOC=flaky test

@sergepetrenko sergepetrenko self-assigned this Dec 25, 2024
@coveralls
Copy link

coveralls commented Dec 25, 2024

Coverage Status

coverage: 87.364% (-0.008%) from 87.372%
when pulling 4aabceb on sergepetrenko:bootstrap-leader-test-fix
into cfc6b4a
on tarantool:master
.

Copy link
Contributor

@Serpentian Serpentian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The commit 89cd7f4 ("replication: do not account booting replicas
in sync quorum") allowed replicas to leave orphan mode without waiting
for everyone listed in box.cfg.replication.

As a result, bootstrap_leader test started exiting too early, because it
relied on one of the replicas staying in orphan mode until all the
others finish bootstrap. Fix it.

Also, remove "memtx" and "vinyl" configuration for the test. There is
nothing in the test related to engines.

While we're at it, remove the test from fragile list. It hasn't flaked
since long ago, excluding the last couple of weeks, which's fixed now.

Closes tarantool/tarantool-qa#63

NO_CHANGELOG=flaky test
NO_DOC=flaky test
The commit 89cd7f4 ("replication: do not account booting replicas
in sync quorum") allowed replicas to leave orphan mode without waiting
for everyone listed in box.cfg.replication.

As a result, bootstrap_leader test started exiting too early, because it
relied on one of the replicas staying in orphan mode until all the
others finish bootstrap. Fix it.

While we're at it, remove the test from fragile list. It hasn't flaked
since long ago, excluding the last couple of weeks, which's fixed now.

Closes tarantool/tarantool-qa#56

NO_CHANGELOG=flaky test
NO_DOC=flaky test
@sergepetrenko sergepetrenko force-pushed the bootstrap-leader-test-fix branch from 250e319 to 4aabceb Compare December 25, 2024 13:58
@sergepetrenko sergepetrenko changed the title test: stabilize replication/bootstrap_leader test test: stabilize replication rebootstrap and bootstrap_leader tests Dec 25, 2024
@sergepetrenko
Copy link
Collaborator Author

@Serpentian, the next flaky test I picked up ended up having the exact same problem and solution. I've added a fix in a separate commit. PTAL

@sergepetrenko sergepetrenko added the full-ci Enables all tests for a pull request label Dec 26, 2024
@sergepetrenko sergepetrenko merged commit 58d9312 into tarantool:master Dec 26, 2024
95 checks passed
@sergepetrenko
Copy link
Collaborator Author

Backports:
3.3 #10997
3.2 #10998
2.11 #10999

@sergepetrenko sergepetrenko deleted the bootstrap-leader-test-fix branch March 17, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: flaky SIGABORT at replication/bootstrap_leader.test.lua test
3 participants