-
Notifications
You must be signed in to change notification settings - Fork 6.2k
executor: reduce TestDistSQLSharedKVRequestRace iterations to fix CI timeout #67675
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,7 +135,7 @@ func TestDistSQLSharedKVRequestRace(t *testing.T) { | |
| } | ||
| for _, mode := range replicaReadModes { | ||
| tk.MustExec(fmt.Sprintf("set session tidb_replica_read = '%s'", mode)) | ||
| for i := 0; i < 20; i++ { | ||
| for i := 0; i < 5; i++ { | ||
|
||
| // index lookup | ||
| tk.MustQuery("select * from t force index(ic) order by c asc limit 500").Check(testkit.Rows(expects...)) | ||
| // index merge | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 [Minor] Race regression test lost replay coverage after loop-count reduction
Impact
TestDistSQLSharedKVRequestRacenow runs each replica-read mode 5 times instead of 20, reducing stress executions from 200 to 50 across the two query paths.This reduces replay/retry sampling for a schedule-sensitive race regression, so repeated runs no longer provide the prior detection confidence.
Scope
pkg/executor/test/distsqltest/distsql_test.go:138—TestDistSQLSharedKVRequestRaceEvidence
The changed loop bound is
for i := 0; i < 5; i++, replacing the previous 20-iteration stress loop inTestDistSQLSharedKVRequestRace.That loop wraps both
force index(ic)and index-merge query checks for everytidb_replica_readmode, so each mode now executes only one quarter of the previous repetition count.Change request
Restore the stress loop count to the previous level, or introduce an explicit deterministic stress knob with documented rationale for lower coverage.
Keep per-mode repeated executions high enough that race detection remains stable across reruns and scheduler variance.