-
Notifications
You must be signed in to change notification settings - Fork 29k
[WIP] [SPARK-4198] [Core] Refactor some BlockManager internals #3065
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
Conversation
|
Test build #22794 has started for PR 3065 at commit
|
|
Test build #22794 has finished for PR 3065 at commit
|
|
Test FAILed. |
|
Test build #22801 has started for PR 3065 at commit
|
|
Test build #22801 has finished for PR 3065 at commit
|
|
Test FAILed. |
Main goals of this PR: - Break up doPut and doGetLocal into component methods which are individually more readable. - Remove the weird "return bytes or value depending on parameter" in BlockManager. - Move the block-related Serialization logic out of BlockManager. Not quite finished and tested, just wanted to get what I have so far up.
|
Test build #22807 has started for PR 3065 at commit
|
|
Test build #22807 has finished for PR 3065 at commit
|
|
Test FAILed. |
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 think these functions can be renamed to serializeStream, deserializeStream, etc. That is, remove data from the names.
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.
In fact, the names can be made more imperative (similar to wrapForCompression): serializeToStream, deserializeFromStream, etc.
|
Is this PR still relevant? Otherwise mind closing this and opening it again later when it is updated and ready for review? |
|
It is still relevant in that this is a much-needed refactor, but it is not ready for review, so I will close it. |
Main goals of this PR:
Not quite finished and tested, just wanted to get what I have so far up.