mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Fix querynodev2 grace stop condition reversed (#25409)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
9b64f12a6c
commit
f07c934558
@ -374,8 +374,8 @@ func (node *QueryNode) Stop() error {
|
||||
timeoutCh := time.After(paramtable.Get().QueryNodeCfg.GracefulStopTimeout.GetAsDuration(time.Second))
|
||||
|
||||
outer:
|
||||
for (node.manager == nil || node.manager.Segment.Empty()) &&
|
||||
(node.pipelineManager == nil || node.pipelineManager.Num() == 0) {
|
||||
for (node.manager != nil && !node.manager.Segment.Empty()) ||
|
||||
(node.pipelineManager != nil && node.pipelineManager.Num() != 0) {
|
||||
select {
|
||||
case <-timeoutCh:
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user