Skip to content

[To dev/1.3] Wait for consensus before region requests - #18479

Closed
CRZbulabula wants to merge 2 commits into
apache:dev/1.3from
CRZbulabula:yongzao/tdb-271-consensus-readiness-dev-1.3
Closed

[To dev/1.3] Wait for consensus before region requests#18479
CRZbulabula wants to merge 2 commits into
apache:dev/1.3from
CRZbulabula:yongzao/tdb-271-consensus-readiness-dev-1.3

Conversation

@CRZbulabula

@CRZbulabula CRZbulabula commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Publish DataNode SchemaRegion/DataRegion consensus readiness across threads before serving region topology RPCs.
  • Wait for both consensus types before mutating region metadata; return CONSENSUS_NOT_INITIALIZED with a clear timeout message when readiness is not reached.
  • Backport the lifecycle-specific behavior to dev/1.3, including the Pipe startup path and read-only readiness context for Internal RPC.
  • Keep the dev/1.3 build and dependency structure unchanged; no i18n wiring or new dependency is introduced.

Tests

  • ConsensusReadinessTest, ConsensusWaitTest, DataNodeInternalRPCServiceTest, DataNodeInternalRPCServiceImplTest, and DaemonTest: 12 tests passed with 0 failures/errors in both Surefire executions.
  • Reactor build for the DataNode test target completed successfully.
  • Spotless formatting check passed.

@CRZbulabula CRZbulabula changed the title [TDB-271][to dev/1.3] Wait for consensus before region requests [To dev/1.3] Wait for consensus before region requests Aug 16, 2026
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