[Feature🚀] Expose role-aware Store disk probes with observation age
Feature Description
Expose a bounded, path-redacted Store disk observation that distinguishes the active CommitLog root, eligible next-segment allocation roots, cleanup roots, and ConsumeQueue, with an actual probe observation point.
Problem/Motivation
The source work in #12635 can report the maximum known configured-root usage and completeness counts. This proves an observed configured root crossed actual cleanup policy, but cannot identify pressure on the active allocation root or determine an individual disk probe's age. The legacy scalar is a minimum across roots and cannot supply either fact.
The Store already distinguishes these roles in rocketmq-store/src/message_store/local_file_message_store/health.rs::is_space_to_delete. Public diagnostics must preserve that distinction without exposing absolute filesystem paths or treating an unavailable probe as zero.
Proposed Solution
- Define an additive typed, bounded disk observation at the Store owner, separating active, allocation-candidate, cleanup and ConsumeQueue roles. Use opaque role identities or summaries, never filesystem roots.
- Preserve measured ratios in 0..1, unavailable/unsupported reasons, relevant normalized policy, sample completeness and the actual probe observation point. Distinguish an idle Store with no active segment from a failed probe.
- Project the observation through the existing Broker runtime diagnostics, read-only Admin diagnostics, public MCP diagnostic Tool and SRE Connector. Keep older payloads and exact pack versions readable; add no arbitrary request or mutation operation.
- Derive current pressure only from the observed role, effective policy and freshness contract. Do not infer active-root failure from the configured-root maximum, inactive-root saturation or a spare-root minimum.
- Reuse Store-owned sampling and lifecycle boundaries. Do not introduce synchronous filesystem probing on an async request path or per-message work.
Primary paths: rocketmq-store/src/message_store/local_file_message_store/health.rs, rocketmq-store/src/log_file/commit_log/handles.rs, rocketmq-store-api/src/capability/health.rs, and the safe producer/consumer projections introduced by #12635.
Acceptance: Docker regression coverage for a full inactive root with a valid active/candidate root, an unavailable active probe, no active segment, rollover role changes, mixed root validity, stale probes, feature/backend absence, exact policy boundaries and output redaction. Include a real isolated multi-root sample without filling a host disk. Run the focused Store/Admin/MCP/Connector tests and package-scoped format checks for the changed path.
Alternatives
Continue exposing configured-root maximum/completeness as partial context and retain an explicit missing active-root/probe-age reason. A maximum or minimum alone must not be relabeled as active-root health.
Additional Context
This is a separate upstream signal dependency of #12635. That change intentionally leaves this part Unknown. Isolated source tests and compiled handlers do not establish organizational production qualification or execution permission.
I'd like to work on this. I'll add role-aware, path-redacted Store disk observations and carry them through the existing read-only diagnostic chain, preserving older payloads and saved pack behavior.