HuangZhenQiu opened a new pull request, #19968:
URL: https://github.com/apache/hudi/pull/19968

   ### Describe the issue this Pull Request addresses
   
   Adds a compactionErrorCount metric to FlinkCompactionMetrics so compaction 
failures - including ones swallowed by NonThrownExecutor when compaction runs 
asynchronously - become observable.
   
   ### Summary and Changelog
   
   - FlinkCompactionMetrics: add a Counter compactionErrorCount, register it in 
the metric group, and expose markCompactionFailed() to increment it.
   - DataTableCompactHandler: call markCompactionFailed() in the async 
executor's failure callback before emitting the failed commit event, so every 
async compaction failure is counted.
   - TestDataTableCompactHandler: add test coverage for the failure path.
   
   ### Impact
   
   none
   
   ### Risk Level
   
   none
   
   ### 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