Skip to content

Fix NoSuchFile in Object IT

bd802ed
Select commit
Loading
Failed to load commit list.
Merged

cp from master #16894

Fix NoSuchFile in Object IT
bd802ed
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Dec 11, 2025 in 3m 52s

Quality Gate failed

Failed conditions
6.7% Duplication on New Code (required ≤ 5%)
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 222 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty collection instead of null.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWA&open=AZsIGzgpe-5aCZExcJWA&pullRequest=16894

Check warning on line 3584 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzSYe-5aCZExcJVr&open=AZsIGzSYe-5aCZExcJVr&pullRequest=16894

Check warning on line 53 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Override the "equals" method in this class.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV6&open=AZsIGzgpe-5aCZExcJV6&pullRequest=16894

Check warning on line 128 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWG&open=AZsIGzgpe-5aCZExcJWG&pullRequest=16894

Check warning on line 139 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWI&open=AZsIGzgpe-5aCZExcJWI&pullRequest=16894

Check warning on line 129 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/util/AstUtil.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzbqe-5aCZExcJVw&open=AZsIGzbqe-5aCZExcJVw&pullRequest=16894

Check failure on line 186 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV4&open=AZsIGzgpe-5aCZExcJV4&pullRequest=16894

Check warning on line 141 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWJ&open=AZsIGzgpe-5aCZExcJWJ&pullRequest=16894

Check warning on line 57 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWC&open=AZsIGzgpe-5aCZExcJWC&pullRequest=16894

Check warning on line 267 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.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=AZsIGzUHe-5aCZExcJVs&open=AZsIGzUHe-5aCZExcJVs&pullRequest=16894

Check failure on line 136 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/disk/TierManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "All disks of tier {} are full." 3 times.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzUHe-5aCZExcJVt&open=AZsIGzUHe-5aCZExcJVt&pullRequest=16894

Check failure on line 211 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this "clone" implementation; use a copy constructor or copy factory instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV-&open=AZsIGzgpe-5aCZExcJV-&pullRequest=16894

Check warning on line 212 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return a non null object.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV_&open=AZsIGzgpe-5aCZExcJV_&pullRequest=16894

Check warning on line 447 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IllegalPathException'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzCYe-5aCZExcJVk&open=AZsIGzCYe-5aCZExcJVk&pullRequest=16894

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "LOGGER" private field.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGz97e-5aCZExcJWP&open=AZsIGz97e-5aCZExcJWP&pullRequest=16894

Check warning on line 80 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJWE&open=AZsIGzgpe-5aCZExcJWE&pullRequest=16894

Check warning on line 213 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/SettleCompactionTask.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'org.apache.iotdb.commons.exception.IllegalPathException', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzG6e-5aCZExcJVo&open=AZsIGzG6e-5aCZExcJVo&pullRequest=16894

Check warning on line 180 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/generator/TsFileNameGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Parameter name 'iDeviceID' must match pattern '^[a-z]([a-z0-9][a-zA-Z0-9]*)?$'.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzI3e-5aCZExcJVq&open=AZsIGzI3e-5aCZExcJVq&pullRequest=16894

Check warning on line 75 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/RecordIterator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a "NoSuchElementException" for iteration beyond the end of the collection.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzrNe-5aCZExcJWK&open=AZsIGzrNe-5aCZExcJWK&pullRequest=16894

Check warning on line 204 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty collection instead of null.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV8&open=AZsIGzgpe-5aCZExcJV8&pullRequest=16894

Check warning on line 253 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.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=AZsIGzgpe-5aCZExcJV3&open=AZsIGzgpe-5aCZExcJV3&pullRequest=16894

Check warning on line 123 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.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=AZsIGz8ue-5aCZExcJWN&open=AZsIGz8ue-5aCZExcJWN&pullRequest=16894

Check warning on line 447 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.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=AZsIGzCYe-5aCZExcJVl&open=AZsIGzCYe-5aCZExcJVl&pullRequest=16894

Check warning on line 190 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/ObjectNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty collection instead of null.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZsIGzgpe-5aCZExcJV7&open=AZsIGzgpe-5aCZExcJV7&pullRequest=16894

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

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=AZsIGzdae-5aCZExcJVx&open=AZsIGzdae-5aCZExcJVx&pullRequest=16894