-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance: Batch forward delete when using DirectForward #37076
enhance: Batch forward delete when using DirectForward #37076
Conversation
Relatedt milvus-io#36887 DirectFoward streaming delete will cause memory usage explode if the segments number was large. This PR add batching delete API and using it for direct forward implementation. Signed-off-by: Congqi Xia <[email protected]>
@congqixia E2e jenkins job failed, comment |
@congqixia go-sdk check failed, comment |
/run-cpu-e2e |
rerun go-sdk |
@congqixia cpp-unit-test check failed, comment |
rerun cpp-unit-test |
switch { | ||
case errors.Is(err, merr.ErrSegmentNotFound): | ||
missingIDs = append(missingIDs, segmentID) | ||
case err != nil: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe log the error
log.Warn("try to delete data of released segment", zap.Int64s("ids", resp.GetMissingIds())) | ||
} | ||
if len(resp.GetFailedIds()) > 0 { | ||
log.Warn("apply delete for segment failed, marking it offline") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make log the segmentIDs here
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, XuanYang-cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Relatedt milvus-io#36887 DirectFoward streaming delete will cause memory usage explode if the segments number was large. This PR add batching delete API and using it for direct forward implementation. Signed-off-by: Congqi Xia <[email protected]>
…#37107) Cherry pick from master pr: #37076 Related #36887 DirectFoward streaming delete will cause memory usage explode if the segments number was large. This PR add batching delete API and using it for direct forward implementation. Signed-off-by: Congqi Xia <[email protected]>
Relatedt #36887
DirectFoward streaming delete will cause memory usage explode if the segments number was large. This PR add batching delete API and using it for direct forward implementation.