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

issue: #34557

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/34575/head
wei liu 2024-07-10 15:12:13 +08:00 committed by GitHub
parent 4850336ca3
commit ebc68d2774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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) {