nada-attia opened a new pull request, #18148: URL: https://github.com/apache/hudi/pull/18148
### Describe the issue this Pull Request addresses This PR adds metrics to track rollback failures in Apache Hudi. When a rollback operation fails, it's important to have visibility into these failures for monitoring and alerting purposes. ### Summary and Changelog Adds a new metric to emit rollback failure events, enabling better observability of rollback operations. **Changes:** - Added `emitRollbackFailure(String exceptionReason)` method to `HoodieMetrics` class to emit a gauge metric when rollback fails - Updated `BaseHoodieTableServiceClient` to call the new metric emission when rollback encounters an exception - Added unit tests to verify the rollback failure metric is correctly emitted ### Impact - New metric `rollback.failure` is emitted when a rollback operation fails - A specific metric with the exception reason is also emitted for more granular tracking - No breaking changes to public APIs ### Risk Level low - This change only adds new metrics without modifying existing rollback behavior ### Documentation Update none - This is an internal metrics addition that doesn't require user-facing documentation changes ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] 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]
