-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
flaky test TestRenameTableAutoIDs #53765
Labels
component/ddl
This issue is related to DDL of TiDB.
component/test
feature/developing
the related feature is in development
severity/major
type/bug
The issue is confirmed as a bug.
Comments
jebter
added
component/test
severity/major
component/ddl
This issue is related to DDL of TiDB.
labels
Jun 4, 2024
ti-chi-bot
bot
added
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
labels
Jun 4, 2024
disable func (tk *TestKit) RefreshSession() {
tk.session = NewSession(tk.t, tk.store)
if intest.InTest {
seed := uint64(time.Now().UnixNano())
tk.t.Logf("RefreshSession rand seed: %d", seed)
rng := rand.New(rand.NewSource(int64(seed)))
// disable infoschema v2 in default TestKit
if rng.Intn(10) >= 11 {
fmt.Println("RefreshSession set infoschema v2")
tk.MustExec("set @@global.tidb_schema_cache_size = 1024 * 1024 * 1024")
}
}
// enforce sysvar cache loading, ref loadCommonGlobalVariableIfNeeded
tk.MustExec("select 3")
} waitFor := func(col int, tableName, s string) {
for {
tk4 := testkit.NewTestKit(t, store)
// enable infoschemav2 in new testkit
tk4.MustExec("set @@global.tidb_schema_cache_size = 1024 * 1024 * 1024")
tk4.MustExec(`use test`)
sql := `admin show ddl jobs where db_name like '` + strings.ToLower(dbName) + `%' and table_name like '` + tableName + `%' and job_type = 'rename table'`
res := tk4.MustQuery(sql).Rows()
if len(res) == 1 && res[0][col] == s {
break
}
logutil.DDLLogger().Info("Could not find match", zap.String("tableName", tableName), zap.String("s", s), zap.Int("colNum", col))
for i := range res {
strs := make([]string, 0, len(res[i]))
for j := range res[i] {
strs = append(strs, res[i][j].(string))
}
logutil.DDLLogger().Info("ddl jobs", zap.Strings("jobs", strs))
}
time.Sleep(10 * time.Millisecond)
}
}
|
tiancaiamao
added
feature/developing
the related feature is in development
and removed
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
may-affects-8.1
labels
Jul 17, 2024
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/ddl
This issue is related to DDL of TiDB.
component/test
feature/developing
the related feature is in development
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
https://tiprow.hawkingrei.com/view/gs/pingcapprow/pr-logs/pull/pingcap_tidb/53762/fast_test_tiprow/1797589167828373504
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: