-
Notifications
You must be signed in to change notification settings - Fork 138
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
[#1398] fix(mr,tez): Make attempId computable and move it to taskAttemptId in BlockId layout. #1418
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1418 +/- ##
============================================
+ Coverage 54.01% 54.88% +0.87%
- Complexity 2863 2868 +5
============================================
Files 438 418 -20
Lines 24850 22552 -2298
Branches 2114 2120 +6
============================================
- Hits 13423 12378 -1045
+ Misses 10586 9406 -1180
+ Partials 841 768 -73 ☔ View full report in Codecov by Sentry. |
@jerqi Could you please provide suggestions on areas that need improvement? |
cc @zhengchenyu could you help review this ? |
Sine #1529 is merged into master, I think we should review this PR? @qijiale76 Can you reconstruct the code according to #1529? |
@qijiale76 Do you want to push this forward? |
Yes, I’ll reconstruct the code next week. |
… taskAttemptId in BlockId.
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
Test Results 2 657 files +10 2 657 suites +10 5h 30m 55s ⏱️ + 4m 6s For more details on these errors, see this check. Results for commit a543fd2. ± Comparison against base commit e0a2e3d. This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
@EnricoMi Thanks for your very helpful review. I have updated this PR based on your suggestions and by referring to Spark's implementation. Could you please review the latest code again? |
client/src/main/java/org/apache/uniffle/client/util/ClientUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/RssEventFetcher.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/RssEventFetcher.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
...t-tez/src/main/java/org/apache/tez/runtime/library/output/RssOrderedPartitionedKVOutput.java
Outdated
Show resolved
Hide resolved
...tez/src/main/java/org/apache/tez/runtime/library/output/RssUnorderedPartitionedKVOutput.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/uniffle/common/util/BlockIdLayout.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapreduce/RssMRUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
client-tez/src/main/java/org/apache/tez/common/RssTezUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/org/apache/uniffle/common/util/BlockIdLayout.java
Outdated
Show resolved
Hide resolved
client-mr/core/src/main/java/org/apache/hadoop/mapred/SortWriteBufferManager.java
Outdated
Show resolved
Hide resolved
# Conflicts: # client-spark/common/src/main/java/org/apache/uniffle/shuffle/manager/RssShuffleManagerBase.java # client-tez/src/main/java/org/apache/tez/runtime/library/common/shuffle/impl/RssTezFetcherTask.java
@EnricoMi, thank you very much for your reviews. I have reverted |
@jerqi I still think taskattemptid should be int. Since we've limited taskattemptid to no more than 32 bits, int is enough. For spark, taskattemptid has changed, now does not comes from TaskContext::taskAttemptId. See the code: incubator-uniffle/common/src/main/java/org/apache/uniffle/common/util/BlockIdLayout.java Line 69 in f7c6d2d
|
Code paths that work fine with |
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!
What changes were proposed in this pull request?
Before this PR, in MR and TEZ engine:
After this PR:
Why are the changes needed?
Fix: #1398
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UT and integrated tests.