[skip ci] Add graceful stop grpc server log in datanode (#12923)

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

Co-authored-by: yun.zhang <yun.zhang@zilliz.com>
pull/12452/head
jaime 2021-12-08 15:09:42 +08:00 committed by GitHub
parent 1674dd5329
commit 42b161ae95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ func (s *Server) Stop() error {
}
s.cancel()
if s.grpcServer != nil {
log.Debug("Graceful stop grpc server...")
// make graceful stop has a timeout
stopped := make(chan struct{})
go func() {