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
|
return
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
log.Debug("liveness exits due to context done")
|
log.Debug("liveness exits due to context done")
|
||||||
|
s.enableRetryKeepAlive = false
|
||||||
// cancel the etcd keepAlive context
|
// cancel the etcd keepAlive context
|
||||||
if s.keepAliveCancel != nil {
|
if s.keepAliveCancel != nil {
|
||||||
s.keepAliveCancel()
|
s.keepAliveCancel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user