Skip to content
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

Add test_follower option to crash test #13282

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

archang19
Copy link
Contributor

@archang19 archang19 commented Jan 9, 2025

Summary

Context: We want to enable secondaries and followers to be tested in crash tests. #13281 added the ability to verify the values returned by Get() requests to secondaries against the ExpectedState. Although there was a test_secondary flag, none of the old secondary verification code was actually being executed in the recurring crash test suites. There also was no flag to enable even the creation of a follower instance.

First, this PR adds a new flag that lets us open a follower database inside the crash test. It is modeled after the code/flags for secondaries. The follower itself presumably has some assert statements inside its implementation, so this would not be completely useless on its own.

Test Plan

python3 tools/db_crashtest.py --simple blackbox --test_follower=1 --use_txn=0

@archang19 archang19 force-pushed the test-follower-crash-option branch from 2ca0fcd to 15a7e9e Compare January 9, 2025 19:58
@archang19 archang19 changed the title [Work in progress] Add test_follower flag to crash test Add test_follower option to crash test Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants