Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/executor/test/distsqltest/distsql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ 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++ {
// Few iterations suffice: Go's race detector is deterministic (catches on first
// occurrence), and RequestBuilder.used guards reuse at build time. Keep this low
// to stay well under the Bazel "moderate" timeout with -race enabled.
for range 5 {
// index lookup
tk.MustQuery("select * from t force index(ic) order by c asc limit 500").Check(testkit.Rows(expects...))
// index merge
Expand Down
Loading