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
[SPARK-37574][CORE][SHUFFLE] Simplify fetchBlocks w/o retry #34831
Conversation
Can one of the admins verify this patch? |
|
||
if (maxRetries > 0) { | ||
// Note this Fetcher will correctly handle maxRetries == 0; we avoid it just in case there's | ||
// a bug in this code. We should remove the if statement once we're sure of the stability. |
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 wonder how do you prove this since maxRetries
default to 3 rather than 0.
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.
There are several places overwrite the conf to 0
, please search ("spark.shuffle.io.maxRetries", "0")
in ExternalShuffleIntegrationSuite
and BlockManagerSuite
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.
When spark.shuffle.io.maxRetries=0
, it tests OneForOneBlockFetcher
rather than RetryingBlockTransferor
, right?
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.
Sound like add unit test cases in RetryingBlockTransferorSuite
is more reasonable, will update soon
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.
Updated UT, please take a look again.
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
What changes were proposed in this pull request?
Simplify code of fetchBlocks w/o retry
Why are the changes needed?
Simplify code.
The original code added in SPARK-4188, the
RetryingBlockTransferor
looks quite stable now.#33340 renames
RetryingBlockFetcher
toRetryingBlockTransferor
, the comment still calls it asFetcher
, it's a little misleading.Does this PR introduce any user-facing change?
No
How was this patch tested?
Update RetryingBlockTransferorSuite