Repository navigation
Conversation
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16183/ |
|
Merged build triggered. |
|
Merged build started. |
There was a problem hiding this comment.
add @return explaining what the boolean return value means
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16190/ |
There was a problem hiding this comment.
yeah, I see your concern, I thought about this too. actually in this PR, it mostly is used internally by HashShuffleManager's writter. While, we can take this as a way to give a chance to expose the internal storage objects for short cut usage. Such as current netty based shuffle sender. Without this interface, it's hard to implement without introduce maybe many more extra interface. to keep it simple. I offer the chance to expose the ShuffleBlockManager.
And then, this "location" conception might not be meaningful, but and BlockObjectId might be a good fit for all the possible shuffleManager, afterall, you are handling some objects whether it is a File , or a Stream, or whatever way you save your data to, So, a ShuffleBlockManager it self might still be needed to access this object in certain shortcut cases for simplifier API, and you can name the method getDataObjectHandle or whatever fits.. I do also have a PR for this idea, say generalize the object and pass around an ObjectID for different storage type at #1209
So does this make any sense to you ;) Still, I agree if we could find better way to solve the netty block sender problem, This could be hide.
There was a problem hiding this comment.
@rxin, How about we also hide current BlockFetcherIterator kind of thing behind shuffleManager. since a specific shuffleManager not necessary using current fetcher approaching to get shuffle data. Each shuffleManager should instance his own shuffle logic, while some could reuse the same logic, say FileBased one could reuse current implementation. By this way, we can solve the above problem and have better chance to not expose shuffleBlockManager, say a read/write interface for shuffle reader/writter is enough.
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16199/ |
|
Merged build triggered. |
|
Merged build started. |
|
Merged build triggered. |
|
Merged build started. |
|
@rxin Moved getBlockLocation method from shuffleBlockManager to HashShuffleBlockMananger to make the interface more general. Does current interface looks reasonable for you? Also still a few shuffle related code could be moved further from block manager to some specific shuffle manager related classes' implementation ( e.g. blockManager.getMultiple). But since they are not tightly related to this shuffleBlockManager generalization works and I am not quite sure whether the other shufflemanager implementation will reuse them or not, so just leave it as it is, and could be done in future PR I guess. |
|
Merged build finished. |
1 similar comment
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16253/ |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16256/ |
|
Thanks - we are all super busy with Spark Summit this week so probably will get to this later in the week... feel free to send a reminder if I don't revisit this towards the end of the week. |
|
ping @rxin ;) |
|
Merged build triggered. |
|
Merged build started. |
|
Sorry will take a look tomorrow! |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/16396/ |
There was a problem hiding this comment.
can u add a todo here that getValues should bypass getBytes to use stream based APIs? Otherwise this uses a lot of memory during external sort merge.
|
Jenkins, test this please |
|
Jenkins, test this please. |
|
Jenkins, ok to test. |
|
QA tests have started for PR 1241 at commit
|
|
QA tests have finished for PR 1241 at commit
|
There was a problem hiding this comment.
if the reduce id is always 0, why even bother defining it?
|
Merging this now. I will take care of some minor things myself. Thanks! |
By Hiding the shuffleblockmanager behind Shufflemanager, we decouple the shuffle data's block mapping management work from Diskblockmananger. This give a more clear interface and more easy for other shuffle manager to implement their own block management logic. the jira ticket have more details. Author: Raymond Liu <raymond.liu@intel.com> Closes apache#1241 from colorant/shuffle and squashes the following commits: 0e01ae3 [Raymond Liu] Move ShuffleBlockmanager behind shuffleManager
apache#1241) ### What changes were proposed in this pull request? New sections in Spark's row-path baseline for `DECIMAL` above precision 18, on the unchanged code, before Varka gains a lane pair for those decimals. `VarkaDecimalBaselineBenchmark` already times a filter and a choice over `DECIMAL(38, 10)`. It gains six shapes, each at `(38, 10)` and at `(20, 2)`, with no nulls and with one row in ten null: - `x IN (c1, c2, c3)`, `x <=> y`, `x IS NULL`, `-x < y` and `abs(x) < y` as filters (a lone negation is as cheap as a copy, so it is timed under a comparison); - `x < y` as a projected value. That is 24 sections, appended after the existing 28 so the committed results keep their places. The table gains `DECIMAL(20, 2)` columns whose integer parts reach `5 * 10^17`, so most unscaled values need the high word. The `IN` literals are at the column's scale, so type coercion adds no cast. `VarkaDecimalBaselineQueriesSuite` now expects 52 sections and checks the new columns and result types. The class now runs the shared fuse check, with each section flagged as fusing or not. Since decimal comparisons of precision up to 18 started fusing, the four `x < y` sections at `DECIMAL(9, 2)` and `DECIMAL(18, 4)` fuse. Master still listed none of them, so its next run of this class would have failed the check. They are now listed, and on the varka on arm they time a kernel. None of the 24 new sections fuses. The committed numbers come from `benchmark.yml` on an EPYC 7763 at 256 and 128 bits, and are spliced into the committed results files as a follow-up commit on this branch: only the new sections, with their provenance. ### Why are the changes needed? The repository's rule for a change that improves a measured path is baseline first: the unchanged code's numbers are committed before the code that moves them. These are the forms the 128-bit decimal pair will fuse first, so their row-path time is what it is measured against. ### Does this PR introduce _any_ user-facing change? No. This adds benchmark sections and test checks only. ### How was this patch tested? - `VarkaDecimalBaselineQueriesSuite` passes, and a probe of every section on the Varka session, after the master merge, finds exactly those four fusing. - The generated table and the 52 section titles and queries are byte-identical before and after the review's refactor. - lint-java, lint-scala, the plan lint and the pre-commit hook are clean. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
By Hiding the shuffleblockmanager behind Shufflemanager, we decouple the shuffle data's block mapping management work from Diskblockmananger. This give a more clear interface and more easy for other shuffle manager to implement their own block management logic. the jira ticket have more details.