Skip to content

[ConfigNode] Fence Region creation across database deletion#18285

Open
CRZbulabula wants to merge 5 commits into
masterfrom
yongzao/confignode-region-create-fence
Open

[ConfigNode] Fence Region creation across database deletion#18285
CRZbulabula wants to merge 5 commits into
masterfrom
yongzao/confignode-region-create-fence

[ConfigNode] Split region group creation by database

be7e361
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 23, 2026 in 9m 1s

Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 797 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "java.util.Random.nextLong()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuMsoTbuALo9VJZu&open=AZ-JnuMsoTbuALo9VJZu&pullRequest=18285

Check warning on line 127 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/SettleSelectorImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'fileTTLTables' must contain no more than '2' consecutive capital letters.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-Jnt9hoTbuALo9VJZl&open=AZ-Jnt9hoTbuALo9VJZl&pullRequest=18285

Check warning on line 3420 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Cast one of the operands of this addition operation to a "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuPqoTbuALo9VJZx&open=AZ-JnuPqoTbuALo9VJZx&pullRequest=18285

Check warning on line 419 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/subscription/SubscriptionInfo.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 121).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnufDoTbuALo9VJaT&open=AZ-JnufDoTbuALo9VJaT&pullRequest=18285

Check warning on line 95 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RequestSizeLimitFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 167).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnugEoTbuALo9VJaX&open=AZ-JnugEoTbuALo9VJaX&pullRequest=18285

Check warning on line 53 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuhcoTbuALo9VJaa&open=AZ-JnuhcoTbuALo9VJaa&pullRequest=18285

Check failure on line 1523 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-NREqPuxJDfLdTxlEw&open=AZ-NREqPuxJDfLdTxlEw&pullRequest=18285

Check warning on line 1013 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "nextLong()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuMsoTbuALo9VJZw&open=AZ-JnuMsoTbuALo9VJZw&pullRequest=18285

Check warning on line 726 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusLogToTabletConverter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof LocalDate localdate'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuQPoTbuALo9VJZz&open=AZ-JnuQPoTbuALo9VJZz&pullRequest=18285

Check warning on line 54 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RestRequestBodyMemoryManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof Reservation reservation'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-Jnuf4oTbuALo9VJaU&open=AZ-Jnuf4oTbuALo9VJaU&pullRequest=18285

Check failure on line 62 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RequestSizeLimitFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "Reservation" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnugEoTbuALo9VJaW&open=AZ-JnugEoTbuALo9VJaW&pullRequest=18285

Check failure on line 177 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/PipeMemoryManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this call to "wait" or move it into a "while" loop.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuLuoTbuALo9VJZs&open=AZ-JnuLuoTbuALo9VJZs&pullRequest=18285

Check warning on line 192 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/client/ClientRunner.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuJNoTbuALo9VJZo&open=AZ-JnuJNoTbuALo9VJZo&pullRequest=18285

Check warning on line 256 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/server/OpcUaServerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 223).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuKJoTbuALo9VJZr&open=AZ-JnuKJoTbuALo9VJZr&pullRequest=18285

Check warning on line 1247 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ConfigMTree.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof ConfigTableNode configtablenode'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-NRFCfuxJDfLdTxlE0&open=AZ-NRFCfuxJDfLdTxlE0&pullRequest=18285

Check warning on line 60 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RestRequestBodyMemoryManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this method into "Reservation".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-Jnuf4oTbuALo9VJaV&open=AZ-Jnuf4oTbuALo9VJaV&pullRequest=18285

Check warning on line 1260 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Method has 10 parameters, which is greater than 7 authorized.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-NRESfuxJDfLdTxlEq&open=AZ-NRESfuxJDfLdTxlEq&pullRequest=18285

Check warning on line 1145 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary cast to "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-NREqPuxJDfLdTxlEv&open=AZ-NREqPuxJDfLdTxlEv&pullRequest=18285

Check warning on line 411 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/subscription/SubscriptionInfo.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=AZ-JnufDoTbuALo9VJaS&open=AZ-JnufDoTbuALo9VJaS&pullRequest=18285

Check failure on line 938 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuMsoTbuALo9VJZv&open=AZ-JnuMsoTbuALo9VJZv&pullRequest=18285

Check warning on line 109 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RequestSizeLimitFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 197).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnugEoTbuALo9VJaY&open=AZ-JnugEoTbuALo9VJaY&pullRequest=18285

Check warning on line 876 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary cast to "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-NRESfuxJDfLdTxlEr&open=AZ-NRESfuxJDfLdTxlEr&pullRequest=18285

Check warning on line 52 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuhroTbuALo9VJab&open=AZ-JnuhroTbuALo9VJab&pullRequest=18285

Check warning on line 143 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/SettleSelectorImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Abbreviation in name 'getTTLTables' must contain no more than '2' consecutive capital letters.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-Jnt9hoTbuALo9VJZm&open=AZ-Jnt9hoTbuALo9VJZm&pullRequest=18285

Check warning on line 150 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/server/OpcUaServerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 116).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-JnuKJoTbuALo9VJZq&open=AZ-JnuKJoTbuALo9VJZq&pullRequest=18285