You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "onebox-li (via GitHub)" <gi...@apache.org> on 2023/06/14 07:51:15 UTC
[GitHub] [incubator-celeborn] onebox-li opened a new pull request, #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
onebox-li opened a new pull request, #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591
### What changes were proposed in this pull request?
ShuffleClientImpl::mapperEnded should not consider attemptId, speculation tasks will update attemptId.
### Why are the changes needed?
ditto
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Cluster test
--
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
[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229375800
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -89,9 +89,12 @@ public class ShuffleClientImpl extends ShuffleClient {
private final Map<Integer, ConcurrentHashMap<Integer, PartitionLocation>> reducePartitionMap =
JavaUtils.newConcurrentHashMap();
- protected final ConcurrentHashMap<Integer, Set<String>> mapperEndMap =
+ // key: shuffleId, value: Set(mapId)
+ protected final ConcurrentHashMap<Integer, Set<Integer>> mapperEndMap =
JavaUtils.newConcurrentHashMap();
+ protected final Set<Integer> stageEndShuffleSet = ConcurrentHashMap.newKeySet();
Review Comment:
ditto for this one
--
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
[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#issuecomment-1590693651
## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1591?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#1591](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1591?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (b0bec5f) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/f2357bf75cb06232b738130b90dd31a678287234?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (f2357bf) will **decrease** coverage by `0.18%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## main #1591 +/- ##
==========================================
- Coverage 45.67% 45.49% -0.18%
==========================================
Files 158 158
Lines 9857 9859 +2
Branches 969 969
==========================================
- Hits 4501 4484 -17
- Misses 5057 5074 +17
- Partials 299 301 +2
```
[see 3 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1591/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?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
[GitHub] [incubator-celeborn] onebox-li commented on pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "onebox-li (via GitHub)" <gi...@apache.org>.
onebox-li commented on PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#issuecomment-1590804013
thanks @RexXiong for replay, I am not sure about that because I find flink batch support Speculative Execution since 1.16. In my env, I just use rss for spark now, so forget flink-client. May I remove all the mapperEnded judge and these two status code?
--
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
[GitHub] [incubator-celeborn] onebox-li commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "onebox-li (via GitHub)" <gi...@apache.org>.
onebox-li commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229356403
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -89,9 +89,11 @@ public class ShuffleClientImpl extends ShuffleClient {
private final Map<Integer, ConcurrentHashMap<Integer, PartitionLocation>> reducePartitionMap =
JavaUtils.newConcurrentHashMap();
- protected final ConcurrentHashMap<Integer, Set<String>> mapperEndMap =
+ protected final ConcurrentHashMap<Integer, Set<Integer>> mapperEndMap =
Review Comment:
ok, done
--
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
[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229342203
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -89,9 +89,11 @@ public class ShuffleClientImpl extends ShuffleClient {
private final Map<Integer, ConcurrentHashMap<Integer, PartitionLocation>> reducePartitionMap =
JavaUtils.newConcurrentHashMap();
- protected final ConcurrentHashMap<Integer, Set<String>> mapperEndMap =
+ protected final ConcurrentHashMap<Integer, Set<Integer>> mapperEndMap =
Review Comment:
could you please add a comment to mention what the key/value is?
--
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
[GitHub] [incubator-celeborn] RexXiong commented on pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#issuecomment-1590760654
LGTM, thanks @onebox-li. For the test failure, we can just remove STAGE_ENDED/MAP_ENDED related code from FlinkShuffleClientImpl, as that would not happen in Flink.
--
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
[GitHub] [incubator-celeborn] pan3793 commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229378387
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -1525,9 +1524,13 @@ public void setupMetaServiceRef(RpcEndpointRef endpointRef) {
driverRssMetaService = endpointRef;
}
- protected boolean mapperEnded(int shuffleId, int mapId, int attemptId) {
- return mapperEndMap.containsKey(shuffleId)
- && mapperEndMap.get(shuffleId).contains(Utils.makeMapKey(shuffleId, mapId, attemptId));
+ protected boolean mapperEnded(int shuffleId, int mapId) {
+ return (mapperEndMap.containsKey(shuffleId) && mapperEndMap.get(shuffleId).contains(mapId))
+ || stageEnded(shuffleId);
Review Comment:
how about putting `stageEnded(shuffleId)` at first?
--
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
[GitHub] [incubator-celeborn] waitinfuture closed pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
URL: https://github.com/apache/incubator-celeborn/pull/1591
--
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
[GitHub] [incubator-celeborn] onebox-li commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "onebox-li (via GitHub)" <gi...@apache.org>.
onebox-li commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229384884
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -1525,9 +1524,13 @@ public void setupMetaServiceRef(RpcEndpointRef endpointRef) {
driverRssMetaService = endpointRef;
}
- protected boolean mapperEnded(int shuffleId, int mapId, int attemptId) {
- return mapperEndMap.containsKey(shuffleId)
- && mapperEndMap.get(shuffleId).contains(Utils.makeMapKey(shuffleId, mapId, attemptId));
+ protected boolean mapperEnded(int shuffleId, int mapId) {
+ return (mapperEndMap.containsKey(shuffleId) && mapperEndMap.get(shuffleId).contains(mapId))
+ || stageEnded(shuffleId);
Review Comment:
I think mapperEnd may be more likely.
--
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
[GitHub] [incubator-celeborn] onebox-li commented on a diff in pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "onebox-li (via GitHub)" <gi...@apache.org>.
onebox-li commented on code in PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#discussion_r1229384204
##########
client/src/main/java/org/apache/celeborn/client/ShuffleClientImpl.java:
##########
@@ -89,9 +89,12 @@ public class ShuffleClientImpl extends ShuffleClient {
private final Map<Integer, ConcurrentHashMap<Integer, PartitionLocation>> reducePartitionMap =
JavaUtils.newConcurrentHashMap();
- protected final ConcurrentHashMap<Integer, Set<String>> mapperEndMap =
+ // key: shuffleId, value: Set(mapId)
+ protected final ConcurrentHashMap<Integer, Set<Integer>> mapperEndMap =
JavaUtils.newConcurrentHashMap();
+ protected final Set<Integer> stageEndShuffleSet = ConcurrentHashMap.newKeySet();
Review Comment:
done
--
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
[GitHub] [incubator-celeborn] RexXiong commented on pull request #1591: [CELEBORN-678] ShuffleClientImpl::mapperEnded should not consider attemptId
Posted by "RexXiong (via GitHub)" <gi...@apache.org>.
RexXiong commented on PR #1591:
URL: https://github.com/apache/incubator-celeborn/pull/1591#issuecomment-1590840209
> thanks @RexXiong for reply, I am not sure about that because I find flink batch support Speculative Execution since 1.16. In my env, I just use rss for spark now, so forget flink-client. May I remove all the mapperEnded judge and these two status code?
That's all right. For simplicity and Flink may supprt reduce partition later, FlinkShuffleClientImpl can adapt to the new method(also remove attemptId from mapperEnded)
--
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