Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch committed Nov 21, 2024
1 parent 2fc9a78 commit 9aceb5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkg/resourcegroup/runaway/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ func (rm *Manager) DeriveChecker(resourceGroupName, originalSQL, sqlDigest, plan
logutil.BgLogger().Warn("cannot setup up runaway checker", zap.Error(err))
return nil
}
// Only check the normal query.
// Only check the normal statement.
if len(planDigest) == 0 {
logutil.BgLogger().Warn("cannot setup up runaway checker, there is no plan digest", zap.Error(err))
return nil
}
rm.ActiveLock.RLock()
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/copr/copr_test/coprocessor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func TestBuildCopIteratorWithRunawayChecker(t *testing.T) {

sql := "select * from t"
group1 := "rg1"
checker := manager.DeriveChecker(group1, sql, "", "", time.Now())
checker := manager.DeriveChecker(group1, sql, "test", "test", time.Now())
manager.AddWatch(&runaway.QuarantineRecord{
ID: 1,
ResourceGroupName: group1,
Expand Down

0 comments on commit 9aceb5c

Please sign in to comment.