[SPARK-48637][CORE] On-demand shuffle migration peer refresh during decommission#46995
Closed
Ngone51 wants to merge 1 commit intoapache:masterfrom
Closed
[SPARK-48637][CORE] On-demand shuffle migration peer refresh during decommission#46995Ngone51 wants to merge 1 commit intoapache:masterfrom
Ngone51 wants to merge 1 commit intoapache:masterfrom
Conversation
Member
Author
Contributor
|
This makes sense to me as an improvement, especially if y'all are seeing failures happen in production often. |
Member
|
Could you fix the related test failures, @Ngone51 ? |
|
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. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes were proposed in this pull request?
(This is the first PR that trying to make the
BlockManagerDecommissionerevent drvien.)This PR adds functionality for
BlockManagerDecommissionerto do the on-demand shuffle migration peer refresh when there is a peer aborted instead of always relying on the periodical refresh thread (i.e.,shuffleBlockMigrationRefreshExecutor).Strictly speaking, in today's solution, when there is queued peers (i.e.,
ShuffleMigrationRunnable) inshuffleMigrationPool, the peer can also be immediately refilled if there is a peer aborted. So the most useful case for this PR is when there is no queued peers.Please note that this PR doesn't remove the periodical refresh thread. Because one on-demmand refresh can't guarantee it can always reach the
STORAGE_DECOMMISSION_SHUFFLE_MAX_THREADS. (We could probably use a dedicated delayed timer to get rid of the periodical refresh thread totally in the future though.)Why are the changes needed?
BlockManagerDecommissionertoday relies on a periodical thread to refresh the shuffle migration peers and the thread does the refresh every 30s (by default). So when a peer aborted, it can take at most 30s to get a fresh migration peer, which is quite low effeicent.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add unit test.
Was this patch authored or co-authored using generative AI tooling?
No