Skip to content

[To master] Avoid stack traces for expected REST query errors - #19281

Merged
JackieTien97 merged 2 commits into
masterfrom
ty/cp-19280-master
Nov 15, 2026
Merged

JackieTien97 merged 2 commits into
masterfrom
ty/cp-19280-master

Declare Logback test dependencies for REST exception tests

92c8835
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 14, 2026 in 4m 48s

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 102 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Convert this Map to an EnumMap.

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

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

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

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 85 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/InsertValues.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=AaHadtO1qi233pB2HKa_&open=AaHadtO1qi233pB2HKa_&pullRequest=19281

Check warning on line 719 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/MPPQueryContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 223).

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

Check warning on line 195 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/ir/GapFillStartAndEndTimeExtractVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof LongLiteral longliteral'

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

Check warning on line 764 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.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 '728'.

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

Check warning on line 59 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/InsertValues.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=AaHadtO0qi233pB2HKa-&open=AaHadtO0qi233pB2HKa-&pullRequest=19281

Check warning on line 66 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/SubscriptionTableSessionBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 72 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 76 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 1981 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 115).

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

Check warning on line 181 in iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumerBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 198 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/ir/GapFillStartAndEndTimeExtractVisitor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof GenericLiteral genericliteral'

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

Check failure on line 120 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/scheduler/SimpleQueryTerminator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 38 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/internal/session/InternalTableSessionPoolBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'}' at column 45 should be alone on a line.

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

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

Move this method into "TierFolderManager".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHads-uqi233pB2HKav&open=AaHads-uqi233pB2HKav&pullRequest=19281

Check warning on line 210 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertRowsStatement.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=AaHadta9qi233pB2HKbV&open=AaHadta9qi233pB2HKbV&pullRequest=19281

Check warning on line 250 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/LoadTsFileTableSchemaCache.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=AaHadtj5qi233pB2HKbg&open=AaHadtj5qi233pB2HKbg&pullRequest=19281

Check warning on line 230 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.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=AaHaduY8qi233pB2HKcM&open=AaHaduY8qi233pB2HKcM&pullRequest=19281

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

Line is longer than 100 characters (found 116).

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

Check warning on line 138 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/subscription/consumer/AlterConsumerGroupProcedure.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 '127'.

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

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

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AaHads-uqi233pB2HKat&open=AaHads-uqi233pB2HKat&pullRequest=19281

Check warning on line 110 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/udf/UDFTable.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 153 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/crud/InsertMultiTabletsStatement.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=AaHadtZ4qi233pB2HKbR&open=AaHadtZ4qi233pB2HKbR&pullRequest=19281