-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix datanode panic due to concurrent compaction and delete processing #27167
Fix datanode panic due to concurrent compaction and delete processing #27167
Conversation
@@ -678,7 +678,7 @@ func (c *ChannelMeta) getCollectionSchema(collID UniqueID, ts Timestamp) (*schem | |||
return c.collSchema, nil | |||
} | |||
|
|||
func (c *ChannelMeta) mergeFlushedSegments(ctx context.Context, seg *Segment, planID UniqueID, compactedFrom []UniqueID) error { | |||
func (c *ChannelMeta) mergeFlushedSegments(ctx context.Context, seg *Segment, planID UniqueID, compactedFrom []UniqueID) { |
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.
ctx can be safely removed here since we don't check it anymore
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.
ctx can be used for tracing
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com> Co-authored-by: bigsheeper <yihao.dai@zilliz.com>
207a3de
to
80b0fd7
Compare
Codecov Report
@@ Coverage Diff @@
## master #27167 +/- ##
==========================================
- Coverage 82.51% 82.49% -0.03%
==========================================
Files 796 796
Lines 112550 112576 +26
==========================================
- Hits 92873 92866 -7
- Misses 16472 16496 +24
- Partials 3205 3214 +9
|
LGTM |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bigsheeper, xiaofan-luan 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 |
fix #27145
the datanode processing delete while compaction happened so flush can not succeed.
For fixing:
see also: #27158