File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,15 @@ class NonBatchedOpsStressTest : public StressTest {
373
373
}
374
374
375
375
void ContinuouslyVerifyDb (ThreadState* thread) const override {
376
- if (!secondary_db_) {
376
+ // Currently this method gets calleds even when
377
+ // FLAGS_continuous_verification_interval == 0 as long as
378
+ // FLAGS_verify_db_one_in > 0. Previously, this was not causing a problem in
379
+ // the crash tests since test_secondary was always equal to 0, and thus we
380
+ // returned early from this method. When test_secondary is set and we have a
381
+ // secondary_db_, the crash test fails during this iterator scan. The stack
382
+ // trace mentions BlobReader/BlobSource but it may not necessarily be
383
+ // related to BlobDB
384
+ if (!secondary_db_ || !FLAGS_continuous_verification_interval) {
377
385
return ;
378
386
}
379
387
assert (secondary_db_);
Original file line number Diff line number Diff line change @@ -1023,6 +1023,9 @@ def finalize_and_sanitize(src_params):
1023
1023
if dest_params .get ("track_and_verify_wals" , 0 ) == 1 :
1024
1024
dest_params ["metadata_write_fault_one_in" ] = 0
1025
1025
dest_params ["write_fault_one_in" ] = 0
1026
+ # Continuous verification fails with secondaries inside NonBatchedOpsStressTest
1027
+ if dest_params .get ("test_secondary" ) == 1 :
1028
+ dest_params ["continuous_verification_interval" ] = 0
1026
1029
return dest_params
1027
1030
1028
1031
You can’t perform that action at this time.
0 commit comments