Skip to content

Commit

Permalink
add lgo
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Oct 30, 2024
1 parent fc71a95 commit 34312f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/schedule/checker/checker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package checker
import (
"bytes"
"context"
"fmt"
"strconv"
"sync"
"time"
Expand Down Expand Up @@ -496,6 +497,7 @@ func (c *Controller) IsPatrolRegionChanEmpty() bool {
if c.patrolRegionContext == nil {
return true
}
fmt.Println("IsPatrolRegionChanEmpty", len(c.patrolRegionContext.regionChan))
return len(c.patrolRegionContext.regionChan) == 0
}

Expand Down
2 changes: 1 addition & 1 deletion server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,7 @@ func TestPatrolRegionConcurrency(t *testing.T) {
re.NoError(failpoint.Enable("github.com/tikv/pd/pkg/schedule/checker/breakPatrol", `return`))
checker.PatrolRegions()
testutil.Eventually(re, func() bool {
fmt.Println(len(oc.GetOperators()))
fmt.Println("TestPatrolRegionConcurrency", len(oc.GetOperators()))
return len(oc.GetOperators()) >= mergeScheduleLimit
})
checkOperatorDuplicate(re, oc.GetOperators())
Expand Down

0 comments on commit 34312f0

Please sign in to comment.