fix: Remove not needed `BlockAll` call in `SyncSegments` (#28632)

See also #28628
Previous compaction task blocked the segment sync task and may block the
flowgraph when sync task is generated by auto sync policy This
`BlockAll` call will block forever and cause whole fg stuck

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/28623/head
congqixia 2023-11-22 14:52:23 +08:00 committed by GitHub
parent ca42cbdad1
commit af18aa709b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -325,8 +325,6 @@ func (node *DataNode) SyncSegments(ctx context.Context, req *datapb.SyncSegments
return merr.Status(err), nil
}
bfs := metacache.NewBloomFilterSet(pks...)
ds.fg.Blockall()
defer ds.fg.Unblock()
ds.metacache.CompactSegments(req.GetCompactedTo(), req.GetPartitionId(), req.GetNumOfRows(), bfs, req.GetCompactedFrom()...)
node.compactionExecutor.injectDone(req.GetPlanID(), true)
return merr.Success(), nil