Skip to content

Fix query partition memory retention and failure diagnostics - #19278

Merged
JackieTien97 merged 2 commits into
masterfrom
ty/cp-19269-master
Nov 14, 2026
Merged

JackieTien97 merged 2 commits into
masterfrom
ty/cp-19269-master

Preserve RPC rejection endpoints and cover reuse threshold

6185c34
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 14, 2026 in 6m 39s

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 warning on line 143 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/DatabasePartitionTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Summary javadoc is missing.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLyCC8kp_Xpxb6sG&open=AaHYJLyCC8kp_Xpxb6sG&pullRequest=19278

Check warning on line 236 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.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=AaHYJKLwC8kp_Xpxb6qw&open=AaHYJKLwC8kp_Xpxb6qw&pullRequest=19278

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

WhitespaceAround: '{' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLdUC8kp_Xpxb6r8&open=AaHYJLdUC8kp_Xpxb6r8&pullRequest=19278

Check warning on line 197 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/coordinator/runtime/PipeMetaSyncer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 122).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLofC8kp_Xpxb6sE&open=AaHYJLofC8kp_Xpxb6sE&pullRequest=19278

Check warning on line 44 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/client/async/DataNodeTransportFailureUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJL03C8kp_Xpxb6sL&open=AaHYJL03C8kp_Xpxb6sL&pullRequest=19278

Check warning on line 198 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/ir/GapFillStartAndEndTimeExtractVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof GenericLiteral genericliteral'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJKYqC8kp_Xpxb6q4&open=AaHYJKYqC8kp_Xpxb6q4&pullRequest=19278

Check warning on line 169 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsOfOneDeviceStatement.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=AaHYJKvOC8kp_Xpxb6rY&open=AaHYJKvOC8kp_Xpxb6rY&pullRequest=19278

Check warning on line 120 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tablet/PipeRawTabletInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof PipeTsFileInsertionEvent pipetsfileinsertionevent'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLSfC8kp_Xpxb6r2&open=AaHYJLSfC8kp_Xpxb6r2&pullRequest=19278

Check warning on line 764 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.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 '728'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLzTC8kp_Xpxb6sI&open=AaHYJLzTC8kp_Xpxb6sI&pullRequest=19278

Check warning on line 76 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJJzcC8kp_Xpxb6qZ&open=AaHYJJzcC8kp_Xpxb6qZ&pullRequest=19278

Check warning on line 54 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/ParallelizeGrouping.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import 'org.apache.iotdb.commons.schema.table.column.TsTableColumnCategory.TAG'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJKW9C8kp_Xpxb6q2&open=AaHYJKW9C8kp_Xpxb6q2&pullRequest=19278

Check warning on line 2402 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/distribute/TableDistributedPlanGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DeviceTableScanNode devicetablescannode'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJKbhC8kp_Xpxb6q5&open=AaHYJKbhC8kp_Xpxb6q5&pullRequest=19278

Check warning on line 90 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/memory/NotThreadSafeMemoryReservationManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 139).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJK3HC8kp_Xpxb6rh&open=AaHYJK3HC8kp_Xpxb6rh&pullRequest=19278

Check warning on line 158 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.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=AaHYJK2BC8kp_Xpxb6rf&open=AaHYJK2BC8kp_Xpxb6rf&pullRequest=19278

Check warning on line 150 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJL70C8kp_Xpxb6sT&open=AaHYJL70C8kp_Xpxb6sT&pullRequest=19278

Check warning on line 1506 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJLCWC8kp_Xpxb6rm&open=AaHYJLCWC8kp_Xpxb6rm&pullRequest=19278

Check warning on line 256 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this method into "TierFolderManager".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJKLwC8kp_Xpxb6qx&open=AaHYJKLwC8kp_Xpxb6qx&pullRequest=19278

Check warning on line 203 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsStatement.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=AaHYJKt0C8kp_Xpxb6rW&open=AaHYJKt0C8kp_Xpxb6rW&pullRequest=19278

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJL3vC8kp_Xpxb6sO&open=AaHYJL3vC8kp_Xpxb6sO&pullRequest=19278

Check warning on line 85 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/InsertValues.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=AaHYJKexC8kp_Xpxb6rB&open=AaHYJKexC8kp_Xpxb6rB&pullRequest=19278

Check warning on line 196 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsStatement.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=AaHYJKt0C8kp_Xpxb6rV&open=AaHYJKt0C8kp_Xpxb6rV&pullRequest=19278

Check warning on line 230 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 109).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJL2bC8kp_Xpxb6sN&open=AaHYJL2bC8kp_Xpxb6sN&pullRequest=19278

Check warning on line 78 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use an "AtomicLongArray" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJKLwC8kp_Xpxb6qu&open=AaHYJKLwC8kp_Xpxb6qu&pullRequest=19278

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 155).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHY-xeXGiVmDmX-tWxV&open=AaHY-xeXGiVmDmX-tWxV&pullRequest=19278

Check warning on line 65 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/SubscriptionTreeSessionBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHYJMEUC8kp_Xpxb6sc&open=AaHYJMEUC8kp_Xpxb6sc&pullRequest=19278