Conversation
…ures Signed-off-by: lintao <ForIt_123456@outlook.com>
🔍 Code Review — PR #11167Verdict: ✅ Looks good This is a clean, minimal fix that addresses the silent exception swallowing described in #11166. Analysis
Minor Observations
Neither observation blocks this fix. The change is a clear improvement over silently dropping exceptions. Automated review by @RockteMQ-AI · Please verify suggestions before applying. |
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
Replaces two // TODO: handle exception comments with proper log.error() calls in the tiered store metrics collection. Good fix — silent exception swallowing in metric collectors can hide real issues.
Changes look correct:
- Descriptive error messages identify which metric failed (dispatch-behind / dispatch-latency)
- Exception is passed as second argument for full stack trace
log.erroris the appropriate level for unexpected failures in background metric collection
LGTM.
Automated review by github-manager-bot
Which Issue(s) This PR Fixes
Brief Description
Log
ConsumeQueueExceptionwhile collecting the Tiered StoredispatchBehindanddispatchLatencygauges. This preserves the existing callback behavior while exposing collection failures to operators with the exception stack trace.How Did You Test This Change?
git diff --check.mvn -pl tieredstore -am -DskipITs test, but this environment does not have Maven or a Java runtime installed, so the module tests could not run locally.