Fix datacoord stop bug (#6642)

issue: #6641
Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/6783/head
sunby 2021-07-24 09:25:14 +08:00 committed by GitHub
parent fc74a0f578
commit aa20d88f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -281,6 +281,7 @@ func (s *Server) startStatsChannel(ctx context.Context) {
}
msgPack := statsStream.Consume()
if msgPack == nil {
log.Debug("receive nil stats msg, shutdown stats channel")
return
}
for _, msg := range msgPack.Msgs {
@ -321,6 +322,7 @@ func (s *Server) startDataNodeTtLoop(ctx context.Context) {
}
msgPack := ttMsgStream.Consume()
if msgPack == nil {
log.Debug("receive nil tt msg, shutdown tt channel")
return
}
for _, msg := range msgPack.Msgs {