-
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: Optimeize clustering compaction #34086
Conversation
Invalid PR Title Format Detected Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:
Required Title Structure:
Where Example:
Please review and update your PR to comply with these guidelines. |
/hold |
@xiaocai2333 ut workflow job failed, comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #34086 +/- ##
==========================================
+ Coverage 71.58% 80.84% +9.25%
==========================================
Files 1085 1085
Lines 137505 137584 +79
==========================================
+ Hits 98439 111230 +12791
+ Misses 34828 22127 -12701
+ Partials 4238 4227 -11
|
@xiaocai2333 ut workflow job failed, comment |
@@ -94,13 +94,16 @@ type clusteringCompactionTask struct { | |||
// vector | |||
segmentIDOffsetMapping map[int64]string | |||
offsetToBufferFunc func(int64, []uint32) *ClusterBuffer | |||
|
|||
cm storage.ChunkManager |
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.
seems not used now
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.
yeah, will remove
@@ -112,14 +115,17 @@ type ClusterBuffer struct { | |||
} | |||
|
|||
type SpillSignal struct { |
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.
Let‘s rename it to FlushSignal, I miss it in the last PR
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.
ok,
t.clusterBufferLocks.Lock(signal.buffer.id) | ||
defer t.clusterBufferLocks.Unlock(signal.buffer.id) | ||
return t.flushBinlog(ctx, signal.buffer) | ||
return t.flushBinlog(ctx, t.clusterBuffers[signal.id], signal.writer, signal.pack) |
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.
submit to pool as well?
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.
ok
return err | ||
} | ||
err = t.packBufferToSegment(ctx, buffer) | ||
writer := buffer.writer |
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.
submit to pool as well?
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.
ok
if err != nil { | ||
return err | ||
func (t *clusteringCompactionTask) refreshBufferWriter(buffer *ClusterBuffer) (bool, error) { | ||
var segmentID int64 |
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.
Can we spilt out a new method needPack
? seems a little mix-together now.
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.
ok
@xiaocai2333 ut workflow job failed, comment |
1 similar comment
@xiaocai2333 ut workflow job failed, comment |
@xiaocai2333 E2e jenkins job failed, comment |
659124f
to
1127a39
Compare
1127a39
to
cf661e5
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xiaocai2333 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@xiaocai2333 E2e jenkins job failed, comment |
Signed-off-by: Cai Zhang <[email protected]>
Signed-off-by: Cai Zhang <[email protected]>
cf661e5
to
0d0a015
Compare
/close |
@xiaocai2333: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
issue: #32939