Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/9214#discussion_r43960203
--- Diff:
core/src/main/java/org/apache/spark/shuffle/sort/BypassMergeSortShuffleWriter.java
---
@@ -155,10 +170,16 @@ public void write(Iterator<Product2<K, V>> records)
throws IOException {
writer.commitAndClose();
}
- partitionLengths =
- writePartitionedFile(shuffleBlockResolver.getDataFile(shuffleId,
mapId));
- shuffleBlockResolver.writeIndexFile(shuffleId, mapId,
partitionLengths);
+ final File tmpDataFile =
blockManager.diskBlockManager().createTempShuffleBlock()._2();
+
+ partitionLengths = writePartitionedFile(tmpDataFile);
--- End diff --
If compression is employed, then each region of the single "partitioned"
file is compressed separately. So the concatenation here should be correct.
---
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]