You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "Z1Wu (via GitHub)" <gi...@apache.org> on 2025/02/24 14:48:01 UTC
[PR] [CELEBORN-1319] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Z1Wu opened a new pull request, #3115:
URL: https://github.com/apache/celeborn/pull/3115
<!--
Thanks for sending a pull request! Here are some tips for you:
- Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
- Be sure to keep the PR description updated to reflect all changes.
- Please write your PR title to summarize what this PR proposes.
- If possible, provide a concise example to reproduce the issue for a faster review.
-->
### What changes were proposed in this pull request?
Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read
### Why are the changes needed?
Follow-up of https://github.com/apache/celeborn/pull/2373
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
test in test-cluster
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "Z1Wu (via GitHub)" <gi...@apache.org>.
Z1Wu commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1969745626
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -122,7 +126,7 @@ public DfsPartitionReader(
e);
}
- if (endMapIndex != Integer.MAX_VALUE) {
+ if (endMapIndex != Integer.MAX_VALUE && endMapIndex != -1) {
Review Comment:
In my understanding, currently celeborn supports both sort-based skew-handling and the sort-free skew-handling introduced in https://github.com/apache/celeborn/pull/2373. If we change the condition to `startMapIndex > endMapIndex`, then it will no longer support sort-based skew-handling at all.
There are some other sort-based skew-handling code in current codebase, such as `PartitionFilesSorter`. If we want to completely remove the code related to sort-based skew-handling, would it be more appropriate to do it in a new PR after https://github.com/apache/celeborn/pull/3118 is merged into the main branch?
Please correct me if there's anything I haven't understood correctly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "wangshengjie123 (via GitHub)" <gi...@apache.org>.
wangshengjie123 commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1969353859
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -197,7 +211,7 @@ public ByteBuf next() throws IOException, InterruptedException {
fetchThread.submit(
() -> {
try {
Review Comment:
In this catch case, we could avoid to fallback to read SortedPath when optimizing skew partition read is enabled , [code](https://github.com/apache/celeborn/blob/79b49805e8f9b9859dcc3c5ad23a84c4b22958f8/client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java#L217)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#issuecomment-2681946402
## [Codecov](https://app.codecov.io/gh/apache/celeborn/pull/3115?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 32.69%. Comparing base [(`2097fcd`)](https://app.codecov.io/gh/apache/celeborn/commit/2097fcdfea0e46f936271f000d72cc552f604c70?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`125abd1`)](https://app.codecov.io/gh/apache/celeborn/commit/125abd1001b1629804758967959a87f1dd57405e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
> Report is 7 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #3115 +/- ##
==========================================
+ Coverage 32.69% 32.69% +0.01%
==========================================
Files 337 338 +1
Lines 20155 20277 +122
Branches 1804 1812 +8
==========================================
+ Hits 6588 6628 +40
- Misses 13201 13281 +80
- Partials 366 368 +2
```
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/celeborn/pull/3115?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1969161015
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -122,7 +126,7 @@ public DfsPartitionReader(
e);
}
- if (endMapIndex != Integer.MAX_VALUE) {
+ if (endMapIndex != Integer.MAX_VALUE && endMapIndex != -1) {
Review Comment:
If the feature of optimizing skew partition read has been enabled, there will be no more sort. So here should not read the sorted DFS file.
The condition should be the condition startMapIndex > endMapIndex to be true and read chunk range from DFS shuffle file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong closed pull request #3115: [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read
URL: https://github.com/apache/celeborn/pull/3115
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "Z1Wu (via GitHub)" <gi...@apache.org>.
Z1Wu commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1969746178
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -197,7 +211,7 @@ public ByteBuf next() throws IOException, InterruptedException {
fetchThread.submit(
() -> {
try {
Review Comment:
fixed, PTAL @wangshengjie123
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "wangshengjie123 (via GitHub)" <gi...@apache.org>.
wangshengjie123 commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1971503192
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -197,7 +211,7 @@ public ByteBuf next() throws IOException, InterruptedException {
fetchThread.submit(
() -> {
try {
Review Comment:
Hi @Z1Wu , sorry for late reply.
LGTM, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "wangshengjie123 (via GitHub)" <gi...@apache.org>.
wangshengjie123 commented on PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#issuecomment-2684826842
> LGTM, thanks @Z1Wu cc @wangshengjie123
@RexXiong LGTM, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "wangshengjie123 (via GitHub)" <gi...@apache.org>.
wangshengjie123 commented on code in PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#discussion_r1969353859
##########
client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java:
##########
@@ -197,7 +211,7 @@ public ByteBuf next() throws IOException, InterruptedException {
fetchThread.submit(
() -> {
try {
Review Comment:
In this catch case, we could avoid to fallback to read SortedPath, [code](https://github.com/apache/celeborn/blob/79b49805e8f9b9859dcc3c5ad23a84c4b22958f8/client/src/main/java/org/apache/celeborn/client/read/DfsPartitionReader.java#L217)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [CELEBORN-1858] Support DfsPartitionReader read partition by chunkOffsets when enable optimize skew partition read [celeborn]
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on PR #3115:
URL: https://github.com/apache/celeborn/pull/3115#issuecomment-2685374128
Thanks, merge to main(v0.6.0)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org