Skip to content

Allow REMOVE REGION for read-only DataNodes - #18670

Merged
CRZbulabula merged 1 commit into
apache:masterfrom
CRZbulabula:yongzao/remove-region-readonly
Sep 18, 2026
Merged

CRZbulabula merged 1 commit into
apache:masterfrom
CRZbulabula:yongzao/remove-region-readonly

Conversation

@CRZbulabula

Copy link
Copy Markdown
Contributor

REMOVE REGION currently rejects a target DataNode unless it is Running. This prevents removing a region replica from a DataNode intentionally placed in ReadOnly state.

This change makes the target status check operation-specific:

  • REMOVE REGION accepts Running and ReadOnly targets.
  • MIGRATE REGION, RECONSTRUCT REGION, and EXTEND REGION continue to require Running targets.

Added a regression test covering removal from a read-only target DataNode.

Validation:

  • mvn spotless:apply -pl iotdb-core/confignode
  • mvn -pl iotdb-core/confignode -am -DskipTests -Dcheckstyle.skip=true compile
  • mvn -pl iotdb-core/confignode -am -Dtest=ProcedureManagerReconstructRegionTest -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false test
  • git diff --check

@CRZbulabula
CRZbulabula merged commit 87a6d19 into apache:master Sep 18, 2026
39 checks passed
@CRZbulabula
CRZbulabula deleted the yongzao/remove-region-readonly branch September 18, 2026 05:57
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