Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

ignore context deadline exceeded error for bank2 admin check table #395

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion testcase/bank2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ func (c *bank2Client) verify(db *sql.DB) {
if strings.Contains(errStr, "1105") &&
!(strings.Contains(errStr, "cancelled DDL job") ||
strings.Contains(errStr, "Information schema is changed") ||
strings.Contains(errStr, "TiKV server timeout")) {
strings.Contains(errStr, "TiKV server timeout") ||
strings.Contains(errStr, "context deadline exceeded")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also add "injected" to the whitelist for testing with failpoints.

atomic.StoreInt32(&c.stop, 1)
c.wg.Wait()
log.Fatalf("[%s] ADMIN CHECK TABLE bank2_accounts fails: %v", c, err)
Expand Down