Skip to content

Commit 2c1b868

Browse files
craig[bot]spilchen
andcommitted
Merge #155434
155434: sql/inspect: deflake TestDetectIndexConsistencyErrors by disabling MVCC GC wait r=spilchen a=spilchen We noticed a timeout in TestDetectIndexConsistencyErrors. The stacks where waiting for the MVCC GC to complete. Since that's not critical to the test, and there is a knob to avoid waiting for that, I am going to fix the flake by using the knob. Fixes #155044 Epic: none Release note: none Co-authored-by: Matt Spilchen <[email protected]>
2 parents dae24c3 + 4edb067 commit 2c1b868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/sql/inspect/index_consistency_check_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ func TestDetectIndexConsistencyErrors(t *testing.T) {
124124
Inspect: &sql.InspectTestingKnobs{
125125
InspectIssueLogger: issueLogger,
126126
},
127+
GCJob: &sql.GCJobTestingKnobs{
128+
SkipWaitingForMVCCGC: true,
129+
},
127130
},
128131
},
129132
})

0 commit comments

Comments
 (0)