Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ public void start() throws Exception {
initClientIds(conf);
}
restoreEvents(Long.MAX_VALUE);
} catch (Throwable throwable) {
log.error("Failed to start operator coordinator.", throwable);
context.failJob(throwable);
} catch (Exception exception) {
// Rethrow instead of context.failJob(): failJob triggers an in-graph global failover that
// keeps this same coordinator instance alive without calling start() again, leaving the
// half-initialized null fields (executor, writeClient, metaClient ...) to be reused and NPE
// later. Rethrowing surfaces the failure as a JobMaster start failure so the partially
// initialized instance is discarded rather than kept serving.
throw new HoodieException("Failed to start operator coordinator.", exception);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ public void testWriteMultiWriterInvolved(WriteConcurrencyMode writeConcurrencyMo

protected void validateNonBlockingConcurrencyControlConditions() {
assertThrows(
IllegalArgumentException.class,
HoodieException.class,
() -> preparePipeline(conf),
"Non-blocking concurrency control requires the MOR table with simple bucket index");
}
Expand Down
Loading