Optimize log when rootcoord goroutine quit (#23698)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
pull/23822/head
Jiquan Long 2023-04-29 16:06:42 +08:00 committed by GitHub
parent 156eba846f
commit c955c26656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,7 @@ func (c *Core) startTimeTickLoop() {
for {
select {
case <-c.ctx.Done():
log.Info("rootcoord's timetick loop quit!")
return
case <-ticker.C:
c.sendMinDdlTsAsTt()
@ -244,6 +245,7 @@ func (c *Core) tsLoop() {
metrics.RootCoordTimestampSaved.Set(float64(ts.Unix()))
case <-ctx.Done():
log.Info("rootcoord's ts loop quit!")
return
}
}