fix: Indexnode stuck at stopping progress cause by wrong lifetime control (#34559)

issue: #34557
pr: #34558

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2024-07-10 15:14:13 +08:00 committed by GitHub
parent 1589d68413
commit a7190b042d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -350,6 +350,7 @@ func (i *IndexNode) ShowConfigurations(ctx context.Context, req *internalpb.Show
Configuations: nil,
}, nil
}
defer i.lifetime.Done()
configList := make([]*commonpb.KeyValuePair, 0)
for key, value := range Params.GetComponentConfigurations("indexnode", req.Pattern) {