-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[HUDI-5350] Fix oom cause compaction event lost problem #7408
Conversation
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
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 <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
Co-authored-by: hbg <bingeng.huang@shopee.com>
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
CompactionCommitEvent
to 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