mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
issue: #20510 Signed-off-by: MrPresent-Han <jamesharden11122@gmail.com> Signed-off-by: MrPresent-Han <jamesharden11122@gmail.com>
This commit is contained in:
parent
49c8ce7561
commit
b021d7c59c
@ -134,6 +134,11 @@ func (o *LeaderObserver) findNeedRemovedSegments(leaderView *meta.LeaderView, di
|
|||||||
if ok || existInCurrentTarget || existInNextTarget {
|
if ok || existInCurrentTarget || existInNextTarget {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
log.Debug("leader observer append a segment to remove:", zap.Int64("collectionID", leaderView.CollectionID),
|
||||||
|
zap.String("Channel", leaderView.Channel), zap.Int64("leaderViewID", leaderView.ID),
|
||||||
|
zap.Int64("segmentID", sid), zap.Bool("distMap_exist", ok),
|
||||||
|
zap.Bool("existInCurrentTarget", existInCurrentTarget),
|
||||||
|
zap.Bool("existInNextTarget", existInNextTarget))
|
||||||
ret = append(ret, &querypb.SyncAction{
|
ret = append(ret, &querypb.SyncAction{
|
||||||
Type: querypb.SyncType_Remove,
|
Type: querypb.SyncType_Remove,
|
||||||
SegmentID: sid,
|
SegmentID: sid,
|
||||||
|
|||||||
@ -647,6 +647,9 @@ func (sc *ShardCluster) LoadSegments(ctx context.Context, req *querypb.LoadSegme
|
|||||||
log.Warn("follower load segment failed", zap.String("reason", resp.GetReason()))
|
log.Warn("follower load segment failed", zap.String("reason", resp.GetReason()))
|
||||||
return fmt.Errorf("follower %d failed to load segment, reason %s", req.DstNodeID, resp.GetReason())
|
return fmt.Errorf("follower %d failed to load segment, reason %s", req.DstNodeID, resp.GetReason())
|
||||||
}
|
}
|
||||||
|
log.Debug("shardCluster has completed loading segments for:",
|
||||||
|
zap.Int64("collectionID:", req.CollectionID), zap.Int64("replicaID:", req.ReplicaID),
|
||||||
|
zap.Int64("sourceNodeId", req.SourceNodeID))
|
||||||
|
|
||||||
// update allocation
|
// update allocation
|
||||||
for _, info := range req.Infos {
|
for _, info := range req.Infos {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user