Skip to content

Fix sequence space overlap caused by out-of-order tablets - #19035

Open
ColinLeeo wants to merge 4 commits into
masterfrom
fix/tablet-out-of-order-seq-overlap
Open

ColinLeeo wants to merge 4 commits into
masterfrom
fix/tablet-out-of-order-seq-overlap

Rearrange the sorted timestamps with the row index

b4b58c0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 5, 2026 in 7m 43s

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 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=AaGfRAcJhoO6gLnztJ7E&open=AaGfRAcJhoO6gLnztJ7E&pullRequest=19035

Check warning on line 267 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=AaGfQ9ARhoO6gLnztJ4p&open=AaGfQ9ARhoO6gLnztJ4p&pullRequest=19035

Check warning on line 99 in iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/transformation/dag/column/binary/HmacColumnTransformer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 194).

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

Check warning on line 134 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/InsertTablet.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty array instead of null.

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

Check warning on line 4161 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.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=AaGfQ7FUhoO6gLnztJ4C&open=AaGfQ7FUhoO6gLnztJ4C&pullRequest=19035

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

Line is longer than 100 characters (found 129).

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

Check warning on line 46 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/component/IntoComponent.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=AaGfQ6kZhoO6gLnztJ31&open=AaGfQ6kZhoO6gLnztJ31&pullRequest=19035

Check warning on line 102 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=AaGfQ-QDhoO6gLnztJ6A&open=AaGfQ-QDhoO6gLnztJ6A&pullRequest=19035

Check warning on line 242 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 127).

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

Check warning on line 354 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/agent/SubscriptionBrokerAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 151).

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

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

Check warning on line 293 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/executor/RegionWriteExecutor.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=AaGfQ7hqhoO6gLnztJ4Q&open=AaGfQ7hqhoO6gLnztJ4Q&pullRequest=19035

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 188).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaGfQ-dChoO6gLnztJ6S&open=AaGfQ-dChoO6gLnztJ6S&pullRequest=19035

Check warning on line 1230 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/thrift/IoTDBDataNodeReceiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 104).

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

Check warning on line 70 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/sorter/TableModelTabletEventSorter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

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

Line is longer than 100 characters (found 104).

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

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=AaGfRAgwhoO6gLnztJ7S&open=AaGfRAgwhoO6gLnztJ7S&pullRequest=19035

Check warning on line 207 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 127).

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

Check warning on line 335 in iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.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=AaGfRERDhoO6gLnztJ9I&open=AaGfRERDhoO6gLnztJ9I&pullRequest=19035

Check warning on line 735 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 RuntimeException runtimeexception'

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

Check warning on line 227 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/SubscriptionPrefetchingTsFileQueue.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 133).

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

Check warning on line 104 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/iotconsensusv2/IoTConsensusV2AsyncSink.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 124).

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

Check warning on line 85 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/tool/PrintUtil.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=AaGfQ5EphoO6gLnztJ3R&open=AaGfQ5EphoO6gLnztJ3R&pullRequest=19035

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBRuntimeException iotdbruntimeexception'

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

Check warning on line 253 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/agent/SubscriptionConsumerAgent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 140).

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