-
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
enhance: [cherry-pick] Alter compactTo segments before compactFrom to avoid data loss if crash #34532
Conversation
@wayblink E2e jenkins job failed, comment |
/run-cpu-e2e |
@wayblink E2e jenkins job failed, comment |
/run-cpu-e2e |
@wayblink E2e jenkins job failed, comment |
/run-cpu-e2e |
@wayblink E2e jenkins job failed, comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.4 #34532 +/- ##
=======================================
Coverage 80.74% 80.74%
=======================================
Files 1051 1051
Lines 135835 135823 -12
=======================================
- Hits 109678 109677 -1
+ Misses 21945 21937 -8
+ Partials 4212 4209 -3
|
/run-cpu-e2e |
@wayblink E2e jenkins job failed, comment |
5f95aae
to
773858d
Compare
773858d
to
0a0b49d
Compare
internal/datacoord/meta.go
Outdated
} | ||
segment := NewSegmentInfo(segmentInfo) | ||
newSegments = append(newSegments, segment) | ||
compactToSegInfos = append(compactToSegInfos, segment) | ||
compactToSegIDs = append(compactFromSegIDs, segment.GetID()) |
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.
compactToSegIDs = append(compactToSegIDs, segment.GetID())
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.
resolved
internal/datacoord/meta.go
Outdated
return info.GetDmlPosition() | ||
})), | ||
StartPosition: getMinPosition(compactFromSegInfos), | ||
DmlPosition: getMinPosition(compactFromSegInfos), |
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.
should use DmlPosition
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.
resolved
Signed-off-by: wayblink <[email protected]>
0a0b49d
to
081e91e
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: czs007, wayblink 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 |
issue: #34512
pr: #34513