Skip to content

[To dev/1.3] [Pipe] Fix remaining-event metric identities - #19082

Open
Caideyipi wants to merge 1 commit into
dev/1.3from
cp/af225846-dev13
Open

Caideyipi wants to merge 1 commit into
dev/1.3from
cp/af225846-dev13

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Backport #19071 (af225846393dfc0da265afa80a3bb37f98e85ef0) to dev/1.3, based on 7f6e63f726fff9cfd4a112d80a5f6930192abb27.

ConfigRegion sources register under pipeName_regionId_creationTime; include the region ID in the remaining-event lookup so registered sources report their pending events. Split global remaining-event and remaining-time metric IDs at the final underscore to preserve complete pipe names and independent creation-time tags when creating and removing gauges.

Use the existing ConfigNodeInfo.CONFIG_REGION_ID constant on this branch. The backport also includes the two affected metric classes' registration-preserving unbind and synchronization changes from #18748 (b2cc8b521262aec0993d3d223b59502904031c82), which are required to retain the source regression scenarios across metric-service restarts. Port the affected lookup and underscore-name scenarios with their assertions, plus the plain-name coordinator restart baseline.

Validation:

  • Built the matching TsFile version from source, then rebuilt the 27-module ConfigNode dependency closure from clean source using an isolated Maven repository with build caches disabled.
  • PipeConfigNodeMetricsRestartTest: 3 tests passed, 0 failures, 0 errors, 0 skipped.
  • mvn spotless:apply -P with-integration-tests -pl iotdb-core/confignode passed.
  • git diff --check passed.

The focused build used JDK 17 and the English locale. Integration tests and distribution assembly were excluded; Checkstyle, RAT, Enforcer, and dependency analysis were skipped.

* [Pipe] Fix ConfigRegion remaining event count lookup

* [Pipe] Preserve full pipe names in remaining metrics

(cherry picked from commit af22584)
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant