mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 12:59:23 +08:00
ca857d922c
Before this PR, session_util used the same context for new session, keepalive check, and etcd keep alive. So if we cancel this context by ourselves, half the chances will the etcd keep-alive-channel be closed by etcd, which will make session utils `think` there's something wrong in connecting to etcd, and half the chances will our keepalive check exit as expected. To solve this problem, this PR seperates 2 contexts: etcd keep alive channel context and our liveness check context. So that when we cancel this liveness check context, session util will exit as expected. Resolves: #10881 Signed-off-by: yangxuan <xuan.yang@zilliz.com> |
||
---|---|---|
.. | ||
session_util_test.go | ||
session_util.go |