Skip to content

Improve subscription metadata high availability - #19454

Open
Caideyipi wants to merge 1 commit into
masterfrom
ha-subscription-offline-node-recovery
Open

Caideyipi wants to merge 1 commit into
masterfrom
ha-subscription-offline-node-recovery

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Summary

  • Make topic, consumer-group, pipe metadata propagation, and commit-progress synchronization tolerate only confirmed offline-node transport failures; online-node failures and business or protocol errors remain failures.
  • Apply complete topic metadata snapshots when a DataNode recovers, removing absent topics and stale progress/filter state and waking reclamation queues.
  • Add regression coverage for failure handling, rollback paths, and snapshot cleanup.

Example

If DataNode 2 is offline during a topic metadata operation, a marked transport-only failure with no business exception details no longer aborts the operation. When DataNode 2 reconnects, a full snapshot removes a topic dropped while it was away and clears its stale tracking. The same transport failure from an online node, or a metadata/business rejection, still fails the procedure.

Validation

  • mvn spotless:apply -pl iotdb-core/datanode passed.
  • mvn clean test -pl iotdb-core/datanode -am -Dtest=SubscriptionTopicAgentTest -Dsurefire.failIfNoSpecifiedTests=false passed (13 tests, 0 failures).
  • git diff --check passed.
  • All added regression tests were run locally.

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