Skip to content

Use per-thread JDBC connections in AINode concurrent forecast IT - #19360

Open
JackieTien97 wants to merge 2 commits into
masterfrom
ty/fix-ainode-concurrent-it
Open

JackieTien97 wants to merge 2 commits into
masterfrom
ty/fix-ainode-concurrent-it

Address review feedback on AINode concurrent forecast IT

0a1577e
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 23, 2026 in 4m 37s

Quality Gate failed

Failed conditions
C 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 failure on line 5602 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/executor/ClusterConfigTaskExecutor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use static access with "org.apache.iotdb.commons.client.AbstractConfigNodeInfo" for "CONFIG_REGION_ID".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-s4ZwEz4wE4bpiJU&open=AaIF-s4ZwEz4wE4bpiJU&pullRequest=19360

Check warning on line 6055 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

Remove this unused private "isWriterRuntimeActive" method.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tpcwEz4wE4bpiKG&open=AaIF-tpcwEz4wE4bpiKG&pullRequest=19360

Check warning on line 279 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/QueryDataSetUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IoTDBException'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tm_wEz4wE4bpiJ_&open=AaIF-tm_wEz4wE4bpiJ_&pullRequest=19360

Check warning on line 259 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/DeletionResourceManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tirwEz4wE4bpiJv&open=AaIF-tirwEz4wE4bpiJv&pullRequest=19360

Check failure on line 824 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.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=AaIF-t3MwEz4wE4bpiKY&open=AaIF-t3MwEz4wE4bpiKY&pullRequest=19360

Check warning on line 176 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/payload/evolvable/request/PipeTransferTabletRawReqV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tdEwEz4wE4bpiJq&open=AaIF-tdEwEz4wE4bpiJq&pullRequest=19360

Check warning on line 388 in iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 101).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-uIswEz4wE4bpiK1&open=AaIF-uIswEz4wE4bpiK1&pullRequest=19360

Check warning on line 129 in iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/WriterSafeFrontierTracker.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use an "AtomicLong" for this field; its operations are atomic.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-uH1wEz4wE4bpiKz&open=AaIF-uH1wEz4wE4bpiKz&pullRequest=19360

Check failure on line 1566 in iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-uUNwEz4wE4bpiK-&open=AaIF-uUNwEz4wE4bpiK-&pullRequest=19360

Check warning on line 118 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/runtime/PipeSchemaRegionListenerManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All overloaded methods should be placed next to each other. Placing non-overloaded methods in between overloaded methods with the same type is a violation. Previous overloaded method located at line '103'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tZ8wEz4wE4bpiJp&open=AaIF-tZ8wEz4wE4bpiJp&pullRequest=19360

Check warning on line 3967 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 14, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tljwEz4wE4bpiJ1&open=AaIF-tljwEz4wE4bpiJ1&pullRequest=19360

Check failure on line 3027 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-t9DwEz4wE4bpiKn&open=AaIF-t9DwEz4wE4bpiKn&pullRequest=19360

Check failure on line 4486 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

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tpcwEz4wE4bpiKL&open=AaIF-tpcwEz4wE4bpiKL&pullRequest=19360

Check warning on line 464 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this lambda with method reference 'DeleteTimeSeriesProcedure.class::isInstance'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-t9DwEz4wE4bpiKg&open=AaIF-t9DwEz4wE4bpiKg&pullRequest=19360

Check warning on line 3054 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.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=AaIF-t9DwEz4wE4bpiKp&open=AaIF-t9DwEz4wE4bpiKp&pullRequest=19360

Check warning on line 2831 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 177).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-t9DwEz4wE4bpiKw&open=AaIF-t9DwEz4wE4bpiKw&pullRequest=19360

Check warning on line 3980 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 14, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tljwEz4wE4bpiJ5&open=AaIF-tljwEz4wE4bpiJ5&pullRequest=19360

Check warning on line 39 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/quotas/NoopOperationQuota.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 42 should be alone on a line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-sxgwEz4wE4bpiJR&open=AaIF-sxgwEz4wE4bpiJR&pullRequest=19360

Check failure on line 1521 in iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-uUNwEz4wE4bpiK9&open=AaIF-uUNwEz4wE4bpiK9&pullRequest=19360

Check warning on line 427 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/consensus/deletion/persist/PageCacheDeletionBuffer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tjdwEz4wE4bpiJw&open=AaIF-tjdwEz4wE4bpiJw&pullRequest=19360

Check warning on line 55 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/schema/table/TableDeletionModProgress.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a thread-safe type; adding "volatile" is not enough to make this field thread-safe.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tznwEz4wE4bpiKP&open=AaIF-tznwEz4wE4bpiKP&pullRequest=19360

Check warning on line 3959 in iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

All overloaded methods should be placed next to each other. Placing non-overloaded methods in between overloaded methods with the same type is a violation. Previous overloaded method located at line '2,747'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-uUNwEz4wE4bpiLA&open=AaIF-uUNwEz4wE4bpiLA&pullRequest=19360

Check warning on line 507 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/InformationSchemaContentSupplierFactory.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tM4wEz4wE4bpiJh&open=AaIF-tM4wEz4wE4bpiJh&pullRequest=19360

Check warning on line 185 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/QueryOwnedFragmentAccount.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 130).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tArwEz4wE4bpiJf&open=AaIF-tArwEz4wE4bpiJf&pullRequest=19360

Check warning on line 3970 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/TypeServices.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 14, expected level should be 10.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaIF-tljwEz4wE4bpiJ3&open=AaIF-tljwEz4wE4bpiJ3&pullRequest=19360