Skip to content

Commit

Permalink
cluster: avoiding large numbers of logs in check tso service (#8855)
Browse files Browse the repository at this point in the history
close #8854

Signed-off-by: lhy1024 <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
lhy1024 and ti-chi-bot[bot] authored Nov 26, 2024
1 parent 52b42b2 commit 69bcd48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,10 @@ func (c *RaftCluster) startTSOJobsIfNeeded() error {
log.Error("failed to initialize the global TSO allocator", errs.ZapError(err))
return err
}
} else {
log.Warn("the global TSO allocator is already initialized")
} else if !c.running {
// If the global TSO allocator is already initialized, but the running flag is false,
// it means there maybe unexpected error happened before.
log.Warn("the global TSO allocator is already initialized before, but the cluster is not running")
}
return nil
}
Expand Down

0 comments on commit 69bcd48

Please sign in to comment.