Skip to content

Commit

Permalink
oomtest: add filter to avoid flaky test in the oomCapture (#39728)
Browse files Browse the repository at this point in the history
ref #39225, ref #39226, close #39434
  • Loading branch information
hawkingrei authored Dec 8, 2022
1 parent 4ce3386 commit 5348bb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/oomtest/oom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ func (h *oomCapture) Write(entry zapcore.Entry, fields []zapcore.Field) error {
h.tracker = str[begin+len("8001]") : end]
return nil
}
// They are just common background task and not related to the oom.
if entry.Message == "SetTiFlashGroupConfig" {
return nil
}

h.mu.Lock()
h.tracker = entry.Message
Expand Down

0 comments on commit 5348bb3

Please sign in to comment.