watermelon12138 commented on code in PR #5391: URL: https://github.com/apache/hudi/pull/5391#discussion_r859753035
########## hudi-utilities/src/main/java/org/apache/hudi/utilities/HoodieCompactor.java: ########## @@ -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); Review Comment: Thank you for your review. Here you can find out why. https://issues.apache.org/jira/browse/HUDI-3945 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org