milvus/internal
wei liu 85d736ec83
fix: Avoid acquire index meta's lock for each segment (#31723) (#31798)
issue: #31662 #31409
pr: #31723

during FilterIndexedSegment in GetRecoveryInfo, it try to acquire index
meta's read lock for every segment. when a collection has thousands of
segments, which may blocked for more than 10 seconds and even longer.
cause `AddSegmentIndex` may also triggered frequently, which try to get
the write lock.

This PR avoid acquire index meta's lock for each segment

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-04-09 17:19:17 +08:00
..
2023-11-07 11:52:22 +08:00
2023-09-21 09:45:27 +08:00