-
Notifications
You must be signed in to change notification settings - Fork 149
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
[#1177] improvement: Reduce the write time of tasks #1179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1179 +/- ##
============================================
+ Coverage 53.63% 54.74% +1.10%
Complexity 2582 2582
============================================
Files 391 371 -20
Lines 22407 20047 -2360
Branches 1875 1875
============================================
- Hits 12019 10975 -1044
+ Misses 9681 8436 -1245
+ Partials 707 636 -71 see 20 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
client-spark/spark3/src/main/java/org/apache/spark/shuffle/writer/RssShuffleWriter.java
Outdated
Show resolved
Hide resolved
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.
LGTM
blockIds.removeAll(successBlockIds); | ||
if (blockIds.isEmpty()) { | ||
break; | ||
boolean interrupted = false; |
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.
It looks complex for current implement.
And I think the sendTimeout is wrong, which is valid for all everytime queue.poll
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.
We use remainingMs
instead of sendCheckTImeout
.
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.
My fault. +1
What changes were proposed in this pull request?
Use callback and queue to optimize the write time.
Why are the changes needed?
Fix: #1177
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI passed.