Joy-2000 opened a new pull request, #19432:
URL: https://github.com/apache/hudi/pull/19432

   ### Describe the issue this Pull Request addresses
   
   `StreamWriteOperatorCoordinator.start()` initializes several fields that are 
required by later coordinator operations, such as `metaClient`, `writeClient`, 
`executor`, and related coordinator state.
   
   Previously, if startup failed, the coordinator called 
`context.failJob(throwable)`. This can trigger an in-graph global failover 
while keeping the same coordinator instance alive. In that path, Flink may 
restore the job without invoking `start()` again on the same coordinator 
instance. If the original startup failed before all fields were initialized, 
the restored coordinator can continue running with null fields and later fail 
with `NullPointerException`.
   
   ### Summary and Changelog
   
   This PR updates `StreamWriteOperatorCoordinator.start()` to rethrow startup 
failures as a `HoodieException`.
   
   Changes:
   - Replace `context.failJob(throwable)` in the `start()` failure path with 
`throw new HoodieException(...)`.
   
   ### Impact
   
   None
   
   ### Risk Level
   
   low
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Enough context is provided in the sections above
   - [ ] Adequate tests were added if applicable


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to