linliu-code opened a new pull request, #10520:
URL: https://github.com/apache/hudi/pull/10520

   ### Change Logs
   
   Use try-finally statement to wrap the logic.
   
   ### Impact
   
   Shutdown the hooks properly. Otherwise, we could have orphan processes in 
some corner cases.
   
   ### Risk level (write none, low medium or high below)
   
   None.
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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