Skip to content

Fix heap accounting for sealed TsFile resources - #19347

Open
JackieTien97 wants to merge 1 commit into
masterfrom
ty/tsfile-resource-memory
Open

JackieTien97 wants to merge 1 commit into
masterfrom
ty/tsfile-resource-memory

Fix heap accounting for sealed TsFile resources

aeb877d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 20, 2026 in 5m 49s

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 1029 in iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add 'since' and/or 'forRemoval' arguments to the @Deprecated annotation.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaH4gcJLxy5OXFn1BRa-&open=AaH4gcJLxy5OXFn1BRa-&pullRequest=19347

Check warning on line 272 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/airgap/IoTDBAirGapReceiverAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 198).

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

Check warning on line 505 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 171).

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

Check warning on line 199 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/schema/DeleteTimeSeriesProcedure.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=AaH4gcDtxy5OXFn1BRaW&open=AaH4gcDtxy5OXFn1BRaW&pullRequest=19347

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

Extract this nested ternary operation into an independent statement.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Single-line Javadoc comment should be multi-line.

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

Check warning on line 420 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.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=AaH4gb66xy5OXFn1BRZp&open=AaH4gb66xy5OXFn1BRZp&pullRequest=19347

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

Single-line Javadoc comment should be multi-line.

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

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

Do something with the "boolean" value returned by "remove".

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

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=AaH4gcF0xy5OXFn1BRar&open=AaH4gcF0xy5OXFn1BRar&pullRequest=19347

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

Line is longer than 100 characters (found 152).

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

Check warning on line 2739 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 185).

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

Check warning on line 486 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 121).

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

Check failure on line 1611 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 19 to the 15 allowed.

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

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=AaH4gb8fxy5OXFn1BRZu&open=AaH4gb8fxy5OXFn1BRZu&pullRequest=19347

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 444 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

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

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

Catch Exception instead of Error.

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

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

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=AaH4gcEVxy5OXFn1BRaa&open=AaH4gcEVxy5OXFn1BRaa&pullRequest=19347

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

Line is longer than 100 characters (found 106).

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

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=AaH4gcKZxy5OXFn1BRbB&open=AaH4gcKZxy5OXFn1BRbB&pullRequest=19347

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=AaH4gb_1xy5OXFn1BRZ7&open=AaH4gb_1xy5OXFn1BRZ7&pullRequest=19347

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=AaH4gcKZxy5OXFn1BRbC&open=AaH4gcKZxy5OXFn1BRbC&pullRequest=19347

Check warning on line 3964 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=AaH4gb_1xy5OXFn1BRZ3&open=AaH4gb_1xy5OXFn1BRZ3&pullRequest=19347

Check warning on line 441 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/source/PipeConfigTreePrivilegeParseVisitor.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=AaH4gcFBxy5OXFn1BRah&open=AaH4gcFBxy5OXFn1BRah&pullRequest=19347