Skip to content

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

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

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

Fix the descending expectation of the out-of-order tablet IT

7f12bc2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 29, 2026 in 6m 23s

Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)
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 90 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/io/WALFormats.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\\d' instead of '[0-9]'.

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

Check failure on line 915 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make non-static "completedResult" transient or serializable.

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

Check failure on line 2469 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

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

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

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

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

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

Check warning on line 34 in iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make this private field "final", it is never reassigned.

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

Check warning on line 277 in iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

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

Check warning on line 213 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/flush/MemTableFlushTask.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this "Collections.sort()" with "List.sort()".

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

Check warning on line 54 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/io/WALFormats.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use concise character class syntax '\\d' instead of '[0-9]'.

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

Check failure on line 80 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/read/reader/chunk/DiskChunkLoader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this "try" to a try-with-resources.

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

Check failure on line 2216 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/security/TreeAccessCheckVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.

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

Check warning on line 34 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/table/ColumnInDeletionException.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 160).

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

Check warning on line 303 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanContext.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=AaGAkklUN2hGQSp2QFN5&open=AaGAkklUN2hGQSp2QFN5&pullRequest=19035

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

Replace this instanceof check and cast with 'instanceof CommitException commitexception'

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

Check warning on line 697 in iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBJDBCResultSet.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 '646'.

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

Check warning on line 47 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/io/WALFormatProvider.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IOException'.

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

Check warning on line 666 in iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code in order to not assign to this loop counter from within the loop body.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This block of commented-out lines of code should be removed.

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

Check warning on line 2218 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 ProjectNode project'

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

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

Expected @throws tag for 'MetadataException'.

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

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

Expected @throws tag for 'MetadataException'.

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

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

Merge this if statement with the enclosing one.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this condition so that it does not always evaluate to "false"

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

Check warning on line 144 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/load/splitter/ChunkPayloadRef.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IOException'.

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move this method into "ProviderHolder".

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

Check warning on line 528 in iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTablePreparedStatement.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof LocalDate localdate'

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