-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-5350] Fix oom cause compaction event lost problem #7408
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
Conversation
| ExceptionUtils.rethrowIfFatalErrorOrOOM(t); | ||
| final String errMsg = String.format("Executor executes action [%s] error", actionString.get()); | ||
| logger.error(errMsg, t); | ||
| if (hook != null) { |
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.
Can also move the log though ~
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.
thanks for review, moved
53bde66 to
913d570
Compare
danny0405
left a comment
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.
+1, nice catch ~
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]>
Co-authored-by: hbg <[email protected]> (cherry picked from commit 115584c)
Co-authored-by: hbg <[email protected]>
Change Logs
code from
org.apache.hudi.sink.compact.CompactOperator:In flink inline async compaction, if OOM error happen during execution of
doCompaction(...), exception hook will not be executed, and no CompactionCommitEvent is sent toCompactionCommitSink. Result in compaction instant stuck in "inflight" state, never succeed or rollback, in fact the compaction is failed.I change the execute sequence: run ExceptionHook before re-throw FatalErrorOrOOM.
I tested and it can sent
CompactionCommitEventto compaction sink to rollback the failed compaction when OOM happen during compaction.Impact
no
Risk level (write none, low medium or high below)
low
Documentation Update
no
Contributor's checklist