-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8029][core] first successful shuffle task always wins #9214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
149ea3e
ShuffleWriters write to temp file, then go through
squito cf8118e
assorted cleanup
squito ea1ae07
style
squito 9356c67
fix compilation in StoragePerfTester
squito 2b42eb5
mima
squito 32d4b3b
update UnsafeShuffleWriterSuite
squito 550e198
fix imports
squito 4ff98bf
should work now, but needs cleanup
squito 4a19702
only consider tmp files that exist; only consider the dest pre-existi…
squito 89063dd
cleanup
squito 4145651
ShuffleOutputCoordinatorSuite
squito 2089e12
cleanup
squito 2e9bbaa
Merge branch 'master' into SPARK-8029_first_wins
squito 4cd423e
write the winning mapStatus to disk, so subsequent tasks can respond …
squito dc4b7f6
fix imports
squito b7a0981
fixes
squito 830a097
shuffle writers must write always write all tmp files
squito 5d11eca
more fixes for zero-sized blocks
squito 3f5af9c
dont make ShuffleWriter return mapStatusFile
squito 4b7c71a
rather than requiring all tmp files to exist, just write a zero-lengt…
squito eabf978
update test case
squito 5bbeec3
minor cleanup
squito e141d82
test that shuffle output files are always the same
squito 4df7955
fix compression settings of tmp files; minor cleanup
squito dc076b8
fix tests
squito cfdfd2c
review feedback
squito 86f468a
Merge branch 'master' into SPARK-8029_first_wins
squito 5c8b247
fix imports
squito 4d66df1
fix more imports
squito e59df41
couple more nits ...
squito c206fc5
minor cleanup
squito c0edff1
style
squito da33519
Merge branch 'master' into SPARK-8029_first_wins
squito c0b93a5
create temporary files in same location as destination files
squito 9d0d9d9
no more @VisibleForTesting
squito 80e037d
unused import
squito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the type of tmp block used here doesn't matter, since
writePartitionedFiledoesn't go throughblockManager.getDiskWriter. However, I'm a bit confused how this worked before. The original partition files might be compressed, and those bytes just get copied to the final data file, though data files seem like they are never compressed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If compression is employed, then each region of the single "partitioned" file is compressed separately. So the concatenation here should be correct.