Skip to content

[Storage] Cap the temporary flush memory estimate at the memtable size - #19108

Open
chrisdutz wants to merge 1 commit into
masterfrom
fix/flush-memory-estimate-cap
Open

chrisdutz wants to merge 1 commit into
masterfrom
fix/flush-memory-estimate-cap

[Storage] Cap the temporary flush memory estimate at the memtable size

506a770
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 5, 2026 in 9m 5s

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 1839 in iotdb-core/datanode/src/main/i18n/en/org/apache/iotdb/db/i18n/DataNodeMiscMessages.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this String concatenation with Text block.

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

Check warning on line 249 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/twostage/exchange/sender/TwoStageAggregateSender.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 102).

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

Check warning on line 345 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 166).

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

Check warning on line 1001 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/PipeTaskAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 158).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaGrdi7_8Hr01pSgv-hH&open=AaGrdi7_8Hr01pSgv-hH&pullRequest=19108

Check warning on line 395 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeUtils.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 138).

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 147).

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

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

Replace this instanceof check and cast with 'instanceof IoTDBConnectionException iotdbconnectionexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaGrdyh78Hr01pSgv-hv&open=AaGrdyh78Hr01pSgv-hv&pullRequest=19108

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 157).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaGjG9-vr8noHvxfnCF_&open=AaGjG9-vr8noHvxfnCF_&pullRequest=19108

Check warning on line 129 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/settle/SettleRequestHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 131).

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

Check warning on line 169 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/active/ActiveLoadTsFileLoader.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=AaGjG0OCr8noHvxfnCBI&open=AaGjG0OCr8noHvxfnCBI&pullRequest=19108

Check warning on line 94 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/utils/TsFileStatisticScan.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "printf" instead of "String.format".

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

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

Line is longer than 100 characters (found 139).

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

Check warning on line 921 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 136).

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

Check warning on line 236 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/analyzer/ExpressionAnalyzer.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=AaGjG1jqr8noHvxfnCBl&open=AaGjG1jqr8noHvxfnCBl&pullRequest=19108

Check warning on line 1124 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/iotconsensusv2/IoTConsensusV2Receiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 128).

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

Check warning on line 289 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/validate/TsFileOverlapValidationAndRepairTool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "printf" instead of "String.format".

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

Check warning on line 83 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/TsFileResourcePrinter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "printf" instead of "String.format".

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

Check warning on line 114 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/tools/utils/TsFileRewriteSmallRangeI64Scan.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "printf" instead of "String.format".

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

Check failure on line 1051 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/schema/ClusterSchemaManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Schema" 4 times.

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

Check warning on line 1779 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/iotconsensusv2/IoTConsensusV2Receiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 143).

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

Check warning on line 1154 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 276).

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

Check warning on line 1022 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/PipeTaskAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 113).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaGrdi7_8Hr01pSgv-hI&open=AaGrdi7_8Hr01pSgv-hI&pullRequest=19108

Check warning on line 569 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/historical/PipeHistoricalDataRegionTsFileAndDeletionSource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 107).

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

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

Line is longer than 100 characters (found 178).

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

Check warning on line 175 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/PipeTaskAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 141).

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