mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Disable retryKeepAlive when LivenessCheck's Context close (#25161)
Signed-off-by: wayblink <anyang.wang@zilliz.com>
This commit is contained in:
parent
29b9b26de8
commit
b7ecb7f56b
@ -784,6 +784,7 @@ func (s *Session) LivenessCheck(ctx context.Context, callback func()) {
|
||||
return
|
||||
case <-ctx.Done():
|
||||
log.Debug("liveness exits due to context done")
|
||||
s.enableRetryKeepAlive = false
|
||||
// cancel the etcd keepAlive context
|
||||
if s.keepAliveCancel != nil {
|
||||
s.keepAliveCancel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user