Skip to content

Commit

Permalink
clea: remove some log
Browse files Browse the repository at this point in the history
  • Loading branch information
RayHuangCN committed May 25, 2021
1 parent f0b4b84 commit 471a688
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/coordinator/rebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ func (c *Coordinator) alleviateShards(changeAbleShards []*shardInfo) (needSpace
for _, s := range changeAbleShards {
for _, t := range threshold {
if s.runtime.HeadSeries >= seriesWithRate(c.maxSeries, t.maxSeriesRate) {
c.log.Infof("%s series is %d, over rate %f", s.shard.ID, s.runtime.HeadSeries, t.maxSeriesRate)
needSpace += c.alleviateShard(s, changeAbleShards, seriesWithRate(c.maxSeries, t.expectSeriesRate))
break
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/shard/kubernetes/replicasmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (g *ReplicasManager) Replicas() ([]shard.Manager, error) {
continue
}

if g.stsUpdatedTime[s.Name] == nil {
if s.Status.ReadyReplicas != s.Status.Replicas && g.stsUpdatedTime[s.Name] == nil {
t := time.Now()
g.lg.Warnf("Statefulset %s is not ready, try wait 2m", s.Name)
g.stsUpdatedTime[s.Name] = &t
Expand Down

0 comments on commit 471a688

Please sign in to comment.