Caideyipi opened a new pull request, #18521: URL: https://github.com/apache/iotdb/pull/18521
## What is changed - Add per-region consensus subscription progress snapshots and DataNode-to-ConfigNode aggregation. - Add consensus queue metrics for remaining in-memory events, raw WAL gap, WAL search indexes, queue stages, poll/progress timestamps, and progress status. - Add `SHOW SUBSCRIPTIONS DETAILS` and `SHOW SUBSCRIPTIONS DETAILS ON <topic>` for tree and relational SQL, including status and consumer progress columns. - Preserve normal `SHOW SUBSCRIPTIONS` output and support rolling upgrades by treating unavailable snapshots as `NO_QUEUE`. ## Semantics - `RemainingEventCount` is exact for events in the queue lifecycle stages currently held in memory. - `RawWalGap` is a search-index distance, not an exact count of topic-filtered events in WAL. - `ApproximateLag` retains the existing queue lag semantics and adds one unit when unread WAL exists. - Consensus/incremental consumption is continuous and has no natural end; `CAUGHT_UP` means caught up to the current WAL tail. `STALLED` is reported when lag remains while no poll/commit progress is observed for the configured consumer eviction timeout. ## Verification - Spotless check passed for node-commons, DataNode, and ConfigNode. - Node Commons snapshot test passed. - Node Commons and ConfigNode compiled in both default and `with-zh-locale` builds. - Thrift and ANTLR sources regenerated successfully. - Full DataNode test compilation is currently blocked by pre-existing generated Freemarker/dependency mismatches (for example missing `commons-collections4` and unrelated fill/aggregation classes). -- 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]
