-
Notifications
You must be signed in to change notification settings - Fork 5.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
[DNM]global sort: new merge step #49212
Conversation
Skipping CI for Draft Pull Request. |
Hi @ywqzzy. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #49212 +/- ##
================================================
- Coverage 71.0493% 71.0406% -0.0088%
================================================
Files 1368 1368
Lines 401715 402727 +1012
================================================
+ Hits 285416 286100 +684
- Misses 96443 96696 +253
- Partials 19856 19931 +75
Flags with carried forward coverage won't be shown. Click here to find out more.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
@@ -271,7 +271,7 @@ func (r *byteReader) reload() error { | |||
now := r.concurrentReader.now | |||
// in read only false -> true is possible | |||
if !now && to { | |||
r.logger.Info("switch reader mode", zap.Bool("use concurrent mode", true)) | |||
// r.logger.Info("switch reader mode", zap.Bool("use concurrent mode", true)) |
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.
change to debug?
MPUUploadIDQuery = "uploadId" | ||
|
||
defaultChunkSize = 5 * 1024 * 1024 // 5 MB | ||
defaultRetry = 3 // 建议默认3~5次,不要太大,否则将可能会导致成为僵尸任务。 |
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.
translate comments
func (w *GCSWriter) Close() error { | ||
if w.currentWorker != nil { | ||
// uploads the last part, which is not a full part | ||
w.currentWorker.uploadPartAsync() |
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.
handle err
return fmt.Errorf("failed to upload part %v too many times, err: %w", uw.index, uw.err) | ||
} | ||
go func() { | ||
err := uw.uploadPart(uw.currentPartNumber, uw.buffer[:uw.offset]) // timeout in few seconds |
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.
if we retry upload after some Write
, the part-num is changed
[FORMAT CHECKER NOTIFICATION] Notice: To remove the 📖 For more info, you can check the "Contribute Code" section in the development guide. Notice: To remove the For example:
📖 For more info, you can check the "Contribute Code" section in the development guide. |
will review again when #48939 merged |
return false | ||
// failpoint.Inject("forceMergeSort", func(val failpoint.Value) { | ||
// in := val.(string) | ||
// if in == kvGroup || in == "*" { | ||
// failpoint.Return(false) | ||
// } | ||
// }) | ||
// return external.GetMaxOverlappingTotal(stats) <= external.MergeSortOverlapThreshold |
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.
Why change this?
@ywqzzy: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What changed and how does it work?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.