Skip to content

Use procedures for region create/delete to fix the delete-region ghost task#18033

Open
CRZbulabula wants to merge 3 commits into
masterfrom
improve-region-maintain-async
Open

Use procedures for region create/delete to fix the delete-region ghost task#18033
CRZbulabula wants to merge 3 commits into
masterfrom
improve-region-maintain-async

Recreate failed replicas via RegionMaintainer; remove failed region g…

35a3150
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jun 26, 2026 in 2m 43s

Annotations

Check failure on line 222 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-K&open=AZ8D-j-WhH1i_EOCKN-K&pullRequest=18033

Check warning on line 119 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-O&open=AZ8D-j-WhH1i_EOCKN-O&pullRequest=18033

Check failure on line 97 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-M&open=AZ8D-j-WhH1i_EOCKN-M&pullRequest=18033

Check warning on line 110 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "switch" statement by "if" statements to increase readability.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-N&open=AZ8D-j-WhH1i_EOCKN-N&pullRequest=18033

Check warning on line 199 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'InterruptedException'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-P&open=AZ8D-j-WhH1i_EOCKN-P&pullRequest=18033

Check warning on line 138 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Invoke method(s) only conditionally.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-I&open=AZ8D-j-WhH1i_EOCKN-I&pullRequest=18033

Check warning on line 128 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Invoke method(s) only conditionally.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-H&open=AZ8D-j-WhH1i_EOCKN-H&pullRequest=18033

Check warning on line 181 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-J&open=AZ8D-j-WhH1i_EOCKN-J&pullRequest=18033

Check warning on line 80 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionGroupProcedure.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the "transient" modifier from this field.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8D-j-WhH1i_EOCKN-L&open=AZ8D-j-WhH1i_EOCKN-L&pullRequest=18033