-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3945] After the async compaction operation is complete, the task should exit #5391
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,13 +171,15 @@ public static void main(String[] args) { | |
| System.exit(1); | ||
| } | ||
| final JavaSparkContext jsc = UtilHelpers.buildSparkContext("compactor-" + cfg.tableName, cfg.sparkMaster, cfg.sparkMemory); | ||
| int ret = 0; | ||
| try { | ||
| HoodieCompactor compactor = new HoodieCompactor(jsc, cfg); | ||
| compactor.compact(cfg.retry); | ||
| ret = compactor.compact(cfg.retry); | ||
| } catch (Throwable throwable) { | ||
| LOG.error("Fail to run compaction for " + cfg.tableName, throwable); | ||
| } finally { | ||
| jsc.stop(); | ||
| System.exit(ret); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi This is the exception log we got in our application, it showed After trouble shooting, I think this error is caused by this line here, which is an inappropriate way to shutdown Spark application in yarn cluster mode. (reference in other repo: broadinstitute/gatk#3400, sparklyr/sparklyr#1903). And I have tried reproduce this issue https://issues.apache.org/jira/browse/HUDI-3945 by using approach mentioned in the ticket description, it said May I ask if there is a clear way that we can reproduce the issue HUDI-3945? If it can't be reproduced, think we can remove this line here.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seeing a similar case to above exception as well. |
||
| } | ||
| } | ||
|
|
||
|
|
||
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.
why we need call System.exit here ?
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.
Thank you for your review. Here you can find out why. https://issues.apache.org/jira/browse/HUDI-3945