Github user squito commented on a diff in the pull request:
https://github.com/apache/spark/pull/6648#discussion_r41575081
--- Diff:
network/shuffle/src/main/java/org/apache/spark/network/shuffle/ExternalShuffleBlockResolver.java
---
@@ -163,12 +163,12 @@ public void registerExecutor(
/**
* Obtains a FileSegmentManagedBuffer from a shuffle block id. We expect
the blockId has the
- * format "shuffle_ShuffleId_MapId_ReduceId" (from ShuffleBlockId), and
additionally make
- * assumptions about how the hash and sort based shuffles store their
data.
+ * format "shuffle_ShuffleId_MapId_ReduceId_StageAttemptId" (from
ShuffleBlockId), and
+ * additionally make assumptions about how the hash and sort based
shuffles store their data.
*/
public ManagedBuffer getBlockData(String appId, String execId, String
blockId) {
String[] blockIdParts = blockId.split("_");
- if (blockIdParts.length < 4) {
+ if (blockIdParts.length != 5) {
--- End diff --
I think Marcelo has a really good point. We should probably support both,
no sense in making it impossible to support both. I'll update for this.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]