Skip to content

[Performance] Allocate AlignedTVList primitive arrays lazily#18276

Open
jt2594838 wants to merge 4 commits into
masterfrom
allocate_primitive_array_lazily_pr
Open

[Performance] Allocate AlignedTVList primitive arrays lazily#18276
jt2594838 wants to merge 4 commits into
masterfrom
allocate_primitive_array_lazily_pr

fix memory calculation

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

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 776 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[] localdateArray'

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 126).

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

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-JaSKSTT3oTzaHgUIz&open=AZ-JaSKSTT3oTzaHgUIz&pullRequest=18276

Check warning on line 263 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 'hasSetTTL' must contain no more than '2' consecutive capital letters.

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

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-JaSHnTT3oTzaHgUIq&open=AZ-JaSHnTT3oTzaHgUIq&pullRequest=18276

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-JaSICTT3oTzaHgUIs&open=AZ-JaSICTT3oTzaHgUIs&pullRequest=18276

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-JaSKCTT3oTzaHgUIy&open=AZ-JaSKCTT3oTzaHgUIy&pullRequest=18276

Check warning on line 52 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/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-JaSIdTT3oTzaHgUIx&open=AZ-JaSIdTT3oTzaHgUIx&pullRequest=18276

Check warning on line 283 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/DataNodeMemoryConfig.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 '162'.

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

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-JaRh3TT3oTzaHgUIX&open=AZ-JaRh3TT3oTzaHgUIX&pullRequest=18276

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-JaR6zTT3oTzaHgUIg&open=AZ-JaR6zTT3oTzaHgUIg&pullRequest=18276

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-JaRh3TT3oTzaHgUIW&open=AZ-JaRh3TT3oTzaHgUIW&pullRequest=18276

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-JaSHnTT3oTzaHgUIr&open=AZ-JaSHnTT3oTzaHgUIr&pullRequest=18276

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-JaSICTT3oTzaHgUIt&open=AZ-JaSICTT3oTzaHgUIt&pullRequest=18276

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-JaR3uTT3oTzaHgUIc&open=AZ-JaR3uTT3oTzaHgUIc&pullRequest=18276

Check warning on line 115 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.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=AZ-JaSKtTT3oTzaHgUI0&open=AZ-JaSKtTT3oTzaHgUI0&pullRequest=18276

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

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

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

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-Jkq0ChRQ-t_zwPMr2&open=AZ-Jkq0ChRQ-t_zwPMr2&pullRequest=18276

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-JaR2JTT3oTzaHgUIa&open=AZ-JaR2JTT3oTzaHgUIa&pullRequest=18276

Check warning on line 121 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-JaRh3TT3oTzaHgUIV&open=AZ-JaRh3TT3oTzaHgUIV&pullRequest=18276

Check warning on line 76 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.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-Jkq5YhRQ-t_zwPMr5&open=AZ-Jkq5YhRQ-t_zwPMr5&pullRequest=18276

Check warning on line 999 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-JkqZihRQ-t_zwPMr0&open=AZ-JkqZihRQ-t_zwPMr0&pullRequest=18276

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-JaSILTT3oTzaHgUIv&open=AZ-JaSILTT3oTzaHgUIv&pullRequest=18276

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-JaSILTT3oTzaHgUIu&open=AZ-JaSILTT3oTzaHgUIu&pullRequest=18276

Check warning on line 183 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-Jkq4HhRQ-t_zwPMr3&open=AZ-Jkq4HhRQ-t_zwPMr3&pullRequest=18276