-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-13921] Store serialized blocks as multiple chunks in MemoryStore #11748
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 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
735eca6
Split MemoryEntry into two separate classes (serialized and deseriali…
JoshRosen 8f08289
Add ChunkedByteBuffer and use it in storage layer.
JoshRosen 79b1a6a
Add test cases and fix bug in ChunkedByteBuffer.toInputStream()
JoshRosen 7dbcd5a
WIP towards understanding destruction.
JoshRosen 3fbec21
Small fixes to dispose behavior.
JoshRosen e5e663f
Modify BlockManager.dataSerialize to write ChunkedByteBuffers.
JoshRosen de62f0d
Merge remote-tracking branch 'origin/master' into chunked-block-seria…
JoshRosen 0a347fd
Fix test compilation in streaming.
JoshRosen 6852c48
Merge remote-tracking branch 'origin/master' into chunked-block-seria…
JoshRosen 43f8fa6
Allow ChunkedByteBuffer to contain no chunks.
JoshRosen 25e6884
Document toByteBuffer() and toArray() size limitations.
JoshRosen 325c83d
Move dispose() from BlockManager to StorageUtils.
JoshRosen 4f5074e
Better documentation for dispose() methods.
JoshRosen b6ddf3e
Rename limit to size.
JoshRosen 719ad3c
Implement missing InputStream methods.
JoshRosen 2300607
More comments.
JoshRosen 3fc0b66
Fix confusing getChunks().head
JoshRosen c747c85
Merge remote-tracking branch 'origin/master' into chunked-block-seria…
JoshRosen cb9311b
Fix logging import.
JoshRosen 2970932
Clean up dispose logic to address review comments.
JoshRosen 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.
this is not safe to do is it?
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.
i guess it is because on the write side we enforced it
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.
This is a messy temporary hack caused by some interface mismatching; I'll see about fixing this so that we don't make any assumptions about there only being one chunk here.
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.
Since there's only ever (in expectation) going to be one chunk here, calling
.toByteBuffershould have no real performance or correctness issues here, so I'll just do that instead.