enhance: Use load pool for `CreateTextIndex` (#37898)

Related to #37895

Only resolves the starving issue which caused goroutine leakage

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/37874/head
congqixia 2024-11-22 10:06:33 +08:00 committed by GitHub
parent 83df725146
commit 92e6ee6285
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,7 @@ func (s *LocalSegment) CreateTextIndex(ctx context.Context, fieldID int64) error
var status C.CStatus
log.Ctx(ctx).Info("create text index for segment", zap.Int64("segmentID", s.ID()), zap.Int64("fieldID", fieldID))
GetDynamicPool().Submit(func() (any, error) {
GetLoadPool().Submit(func() (any, error) {
status = C.CreateTextIndex(s.ptr, C.int64_t(fieldID))
return nil, nil
}).Await()