[Spark] Prevent FetchFailedException when enabling optimize write feature when running remote shuffle service (e.g. celeborn) #5681
+134
−34
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.
Which Delta project/connector is this regarding?
Description
Resolves #4343
How was this patch tested?
This was tested with running apache spark + deltalake + celeborn with client mode. No row duplicates + no shuffle fetch failures happens
Does this PR introduce any user-facing changes?
Yes, previous behavior is that when the optimizeWrite feature is enabled + when running in parallel remote shuffle service for spark, the
FetchFailedExceptionhappens. After this PR, by specifying the flaguseShuffleManagerto betrue, theFetchFailedExceptionis prevented even using remote shuffle service (e.g. apache celeborn)