Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

address comment

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Feb 20, 2024
1 parent fd5aed0 commit ae03f2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/domain/resourcegroup/runaway.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ func (r *RunawayChecker) CheckCopRespError(err error) error {
if r.deadline.Before(now) && r.marked.CompareAndSwap(false, true) {
r.markRunaway(RunawayMatchTypeIdentify, r.setting.Action, &now)
r.markQuarantine(&now)
return exeerrors.ErrResourceGroupQueryRunawayInterrupted
}
}
// Due to concurrency, check again.
if r.marked.Load() {
return exeerrors.ErrResourceGroupQueryRunawayInterrupted
}
}
Expand Down

0 comments on commit ae03f2e

Please sign in to comment.