Uh oh!
There was an error while loading. Please reload this page.
[HUDI-5238] Fixing HoodieMergeHandle shutdown sequence - #7245
Merged
Conversation
4 tasks
alexeykudinkinforce-pushed
the
ak/exeq-trdwn-fix
branch
from
December 8, 2022 04:03
6146275 to
2c234afCompareHoodieMergeHandle shutdown sequenceHoodieMergeHandle shutdown sequencealexeykudinkinforce-pushed
the
ak/exeq-trdwn-fix
branch
2 times, most recently
from
February 17, 2023 18:42
85eaa8d to
9fd17ceComparensivabalanforce-pushed
the
ak/exeq-trdwn-fix
branch
from
March 17, 2023 23:32
9fd17ce to
811eac5Compare…handles w/in the executor's consumers, as soon as writing is completed
xushiyan
approved these changes
May 19, 2023
hudi-bot
commented
May 19, 2023
Collaborator
prithiviiiiiiii
commented
May 22, 2025
@xushiyan / @alexeykudinkin / @nsivabalan i am facing this exact same issue with 12.0 #7234. One question: why this happens selectively? In my case, many tables' upserts are running fine with 12.0 except one table. Why? Also how should i fix this. Do i need to migrate to a later version? or is there a better way to fix this |
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 freeto 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.
Change Logs
This PR addresses the #7234 related to
HoodieMergeHandleshutdown sequence:in introduced at #4264 we changed the ordering in which we shut down the handle relative to the executor:
Before it was
After
The reason it was switched was to handle the case when during exception thrown executor might still be writing out records, and closing of the handle (before the executor) was leaving some of the produced Parquet files corrupted.
This PR, addresses this issue by making sure that in the successful path we close the Handle immediately as soon as writing has finished (before we shutdown the executor), which would make sure this will not result in any
PipeBrokenexceptions in GCSImpact
No impact
Risk level (write none, low medium or high below)
Low
Documentation Update
N/A
Contributor's checklist