Skip to content

Add test_follower option to crash test#13282

Draft
archang19 wants to merge 3 commits intofacebook:mainfrom
archang19:test-follower-crash-option
Draft

Add test_follower option to crash test#13282
archang19 wants to merge 3 commits intofacebook:mainfrom
archang19:test-follower-crash-option

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 2 times, most recently 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
@archang19 archang19 force-pushed the test-follower-crash-option branch from 4a5d56a to 9b2794c Compare January 24, 2025 23:46
@archang19 archang19 force-pushed the test-follower-crash-option branch from 9b2794c to 2e6d65a Compare February 3, 2025 19:27
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