yuqi1129 opened a new pull request, #13388: URL: https://github.com/apache/gravitino/pull/13388
### What changes were proposed in this pull request? - Add entity change log metrics for the database tail, cursor, lag, poll age and duration, fetched/delivered/applied records, listener failures, and cache recovery. - Add correlated diagnostic fields to write, poll, delivery, and cache invalidation logs. - Document the metrics and current one-time delivery behavior; align the server and design documentation. ### Why are the changes needed? These signals help operators trace a change across nodes and identify where cache invalidation stopped. The current poller has no pending delivery or retry state; each listener handles its own recovery. Fix: #12419 ### Does this PR introduce _any_ user-facing change? Yes. It adds JMX and Prometheus metrics under the `entity-change-log` source and more diagnostic logs. It does not change public APIs or configuration keys. ### How was this patch tested? - `./gradlew :core:spotlessCheck :core:test --tests 'org.apache.gravitino.metrics.source.TestEntityChangeLogMetricsSource' --tests 'org.apache.gravitino.storage.relational.TestEntityChangeLogPoller' --tests 'org.apache.gravitino.storage.relational.TestEntityCacheChangeLogListener' --tests 'org.apache.gravitino.storage.relational.TestEntityChangeLogDiagnostics' -PskipITs -PskipWeb=true` - `git diff --check` The full `:core:test -PskipITs` run was started locally but stopped after the test task produced no progress for several minutes; the targeted tests above passed on the latest `apache/main`. -- 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]
