Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Dec 4, 2024
1 parent 6c2c7fb commit e0f0e97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mcs/scheduling/server/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ func (s *Service) AskBatchSplit(_ context.Context, request *schedulingpb.AskBatc
// If region splits during the scheduling process, regions with abnormal
// status may be left, and these regions need to be checked with higher
// priority.
log.Info("AskBatchSplit", zap.Reflect("recordRegions", recordRegions))
c.GetCoordinator().GetCheckerController().AddPendingProcessedRegions(false, recordRegions...)

return &schedulingpb.AskBatchSplitResponse{
Expand Down
2 changes: 2 additions & 0 deletions pkg/schedule/checker/checker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ func (c *Controller) tryAddOperators(region *core.RegionInfo) {
c.opController.AddWaitingOperator(ops...)
c.RemovePendingProcessedRegion(id)
} else {
log.Info("tryAddOperators exceed store limit", zap.Uint64("region-id", id))
c.AddPendingProcessedRegions(true, id)
}
}
Expand Down Expand Up @@ -439,6 +440,7 @@ func (c *Controller) CheckSuspectRanges() {
if lastRegion.GetEndKey() != nil && bytes.Compare(lastRegion.GetEndKey(), keyRange[1]) < 0 {
c.AddSuspectKeyRange(lastRegion.GetEndKey(), keyRange[1])
}
log.Info("CheckSuspectRanges", zap.Reflect("regionIDList", regionIDList))
c.AddPendingProcessedRegions(false, regionIDList...)
}
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/schedule/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ func (h *Handler) AccelerateRegionsScheduleInRange(rawStartKey, rawEndKey string
for _, region := range regions {
regionsIDList = append(regionsIDList, region.GetID())
}
log.Info("AccelerateRegionsScheduleInRange", zap.Reflect("regionIDList", regionsIDList))
co.GetCheckerController().AddPendingProcessedRegions(false, regionsIDList...)
}
return nil
Expand Down Expand Up @@ -1153,6 +1154,7 @@ func (h *Handler) AccelerateRegionsScheduleInRanges(startKeys [][]byte, endKeys
for _, region := range regions {
regionsIDList = append(regionsIDList, region.GetID())
}
log.Info("AccelerateRegionsScheduleInRanges", zap.Reflect("regionIDList", regionsIDList))
co.GetCheckerController().AddPendingProcessedRegions(false, regionsIDList...)
}
return nil
Expand Down
1 change: 1 addition & 0 deletions server/cluster/cluster_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func (c *RaftCluster) HandleAskBatchSplit(request *pdpb.AskBatchSplitRequest) (*
// If region splits during the scheduling process, regions with abnormal
// status may be left, and these regions need to be checked with higher
// priority.
log.Info("HandleAskBatchSplit", zap.Reflect("recordRegions", recordRegions))
c.AddPendingProcessedRegions(false, recordRegions...)

resp := &pdpb.AskBatchSplitResponse{Ids: splitIDs}
Expand Down

0 comments on commit e0f0e97

Please sign in to comment.