-
- Downloads
[SPARK-8029] Robust shuffle writer
Currently, all the shuffle writer will write to target path directly, the file could be corrupted by other attempt of the same partition on the same executor. They should write to temporary file then rename to target path, as what we do in output committer. In order to make the rename atomic, the temporary file should be created in the same local directory (FileSystem). This PR is based on #9214 , thanks to squito . Closes #9214 Author: Davies Liu <davies@databricks.com> Closes #9610 from davies/safe_shuffle.
Showing
- core/src/main/java/org/apache/spark/shuffle/sort/BypassMergeSortShuffleWriter.java 5 additions, 4 deletions...ache/spark/shuffle/sort/BypassMergeSortShuffleWriter.java
- core/src/main/java/org/apache/spark/shuffle/sort/UnsafeShuffleWriter.java 7 additions, 6 deletions...va/org/apache/spark/shuffle/sort/UnsafeShuffleWriter.java
- core/src/main/scala/org/apache/spark/shuffle/FileShuffleBlockResolver.scala 4 additions, 13 deletions...a/org/apache/spark/shuffle/FileShuffleBlockResolver.scala
- core/src/main/scala/org/apache/spark/shuffle/IndexShuffleBlockResolver.scala 95 additions, 7 deletions.../org/apache/spark/shuffle/IndexShuffleBlockResolver.scala
- core/src/main/scala/org/apache/spark/shuffle/hash/HashShuffleWriter.scala 25 additions, 0 deletions...ala/org/apache/spark/shuffle/hash/HashShuffleWriter.scala
- core/src/main/scala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala 6 additions, 5 deletions...ala/org/apache/spark/shuffle/sort/SortShuffleWriter.scala
- core/src/main/scala/org/apache/spark/storage/BlockManager.scala 4 additions, 5 deletions...rc/main/scala/org/apache/spark/storage/BlockManager.scala
- core/src/main/scala/org/apache/spark/storage/DiskBlockObjectWriter.scala 3 additions, 2 deletions...cala/org/apache/spark/storage/DiskBlockObjectWriter.scala
- core/src/main/scala/org/apache/spark/util/Utils.scala 9 additions, 3 deletionscore/src/main/scala/org/apache/spark/util/Utils.scala
- core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala 0 additions, 1 deletion...ala/org/apache/spark/util/collection/ExternalSorter.scala
- core/src/test/java/org/apache/spark/shuffle/sort/IndexShuffleBlockResolverSuite.scala 114 additions, 0 deletions...e/spark/shuffle/sort/IndexShuffleBlockResolverSuite.scala
- core/src/test/java/org/apache/spark/shuffle/sort/UnsafeShuffleWriterSuite.java 7 additions, 2 deletions...g/apache/spark/shuffle/sort/UnsafeShuffleWriterSuite.java
- core/src/test/java/org/apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java 2 additions, 1 deletion...apache/spark/unsafe/map/AbstractBytesToBytesMapSuite.java
- core/src/test/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorterSuite.java 2 additions, 1 deletion...til/collection/unsafe/sort/UnsafeExternalSorterSuite.java
- core/src/test/scala/org/apache/spark/ShuffleSuite.scala 106 additions, 1 deletioncore/src/test/scala/org/apache/spark/ShuffleSuite.scala
- core/src/test/scala/org/apache/spark/shuffle/sort/BypassMergeSortShuffleWriterSuite.scala 13 additions, 1 deletion...park/shuffle/sort/BypassMergeSortShuffleWriterSuite.scala
Loading
Please register or sign in to comment