[skip ci] Add graceful stop grpc server log in indexnode (#12826)

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Co-authored-by: yun.zhang <yun.zhang@zilliz.com>
This commit is contained in:
jaime 2021-12-08 15:05:52 +08:00 committed by GitHub
parent a1b907313f
commit 8b309eed80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,7 @@ func (s *Server) Stop() error {
s.indexnode.Stop()
}
if s.grpcServer != nil {
log.Debug("Graceful stop grpc server...")
s.grpcServer.GracefulStop()
}
s.loopWg.Wait()