Skip to content

Add TLS channel failure reporting hooks#18299

Draft
HTHou wants to merge 3 commits into
masterfrom
codex/trusted-channel-failure-hooks
Draft

Add TLS channel failure reporting hooks#18299
HTHou wants to merge 3 commits into
masterfrom
codex/trusted-channel-failure-hooks

Address trusted channel review feedback

f154305
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 24, 2026 in 9m 14s

Quality Gate failed

Failed conditions
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 failure on line 2828 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Fix this access that will throw a NullPointerException when executed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bFRNRP0su2tLJ30&open=AZ-S5bFRNRP0su2tLJ30&pullRequest=18299

Check warning on line 27 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/audit/TrustedChannelFailureHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

WhitespaceAround: '{' is not followed by whitespace. Empty blocks may only be represented as {} when not part of a multi-block statement (4.1.3)

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5aezNRP0su2tLJ3U&open=AZ-S5aezNRP0su2tLJ3U&pullRequest=18299

Check warning on line 327 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/PipeMemoryManager.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=AZ-S5a1lNRP0su2tLJ3i&open=AZ-S5a1lNRP0su2tLJ3i&pullRequest=18299

Check failure on line 93 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/async/AsyncIoTConsensusV2ServiceClient.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Fix this access that will throw a NullPointerException when executed.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TJb1eOrJ5eEQ1XEEb&open=AZ-TJb1eOrJ5eEQ1XEEb&pullRequest=18299

Check warning on line 52 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bUUNRP0su2tLJ4A&open=AZ-S5bUUNRP0su2tLJ4A&pullRequest=18299

Check warning on line 419 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/subscription/SubscriptionInfo.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=AZ-S5bPYNRP0su2tLJ35&open=AZ-S5bPYNRP0su2tLJ35&pullRequest=18299

Check warning on line 95 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/filter/RequestSizeLimitFilter.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 167).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bTrNRP0su2tLJ3-&open=AZ-S5bTrNRP0su2tLJ3-&pullRequest=18299

Check failure on line 190 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use try-with-resources or close this "ExecutorService" in a "finally" clause.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a9pNRP0su2tLJ3t&open=AZ-S5a9pNRP0su2tLJ3t&pullRequest=18299

Check warning on line 115 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 130).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bXQNRP0su2tLJ4D&open=AZ-S5bXQNRP0su2tLJ4D&pullRequest=18299

Check warning on line 263 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/SettleSelectorImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5aiHNRP0su2tLJ3a&open=AZ-S5aiHNRP0su2tLJ3a&pullRequest=18299

Check warning on line 76 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary cast to "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a8UNRP0su2tLJ3s&open=AZ-S5a8UNRP0su2tLJ3s&pullRequest=18299

Check warning on line 52 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bWmNRP0su2tLJ4C&open=AZ-S5bWmNRP0su2tLJ4C&pullRequest=18299

Check warning on line 1145 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary cast to "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a6yNRP0su2tLJ3q&open=AZ-S5a6yNRP0su2tLJ3q&pullRequest=18299

Check warning on line 1247 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/schema/ConfigMTree.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof ConfigTableNode configtablenode'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bMVNRP0su2tLJ32&open=AZ-S5bMVNRP0su2tLJ32&pullRequest=18299

Check warning on line 135 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.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=AZ-S5a6xNRP0su2tLJ3o&open=AZ-S5a6xNRP0su2tLJ3o&pullRequest=18299

Check warning on line 143 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/SettleSelectorImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5aiHNRP0su2tLJ3Z&open=AZ-S5aiHNRP0su2tLJ3Z&pullRequest=18299

Check failure on line 390 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/PipeMemoryManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this call to "wait" or move it into a "while" loop.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a1lNRP0su2tLJ3j&open=AZ-S5a1lNRP0su2tLJ3j&pullRequest=18299

Check warning on line 999 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unnecessary cast to "long".

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5am-NRP0su2tLJ3d&open=AZ-S5am-NRP0su2tLJ3d&pullRequest=18299

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

Use an "AtomicInteger" for this field; its operations are atomic.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a-0NRP0su2tLJ3v&open=AZ-S5a-0NRP0su2tLJ3v&pullRequest=18299

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

Replace this instanceof check and cast with 'instanceof LocalDate[] localdateArray'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a_5NRP0su2tLJ3x&open=AZ-S5a_5NRP0su2tLJ3x&pullRequest=18299

Check warning on line 192 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/client/ClientRunner.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=AZ-S5axGNRP0su2tLJ3e&open=AZ-S5axGNRP0su2tLJ3e&pullRequest=18299

Check warning on line 37 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/sync/SyncThriftClientWithErrorHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

WhitespaceAround: '}' is not preceded with whitespace.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TJcHIOrJ5eEQ1XEEd&open=AZ-TJcHIOrJ5eEQ1XEEd&pullRequest=18299

Check warning on line 129 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 126).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5bXQNRP0su2tLJ4E&open=AZ-S5bXQNRP0su2tLJ4E&pullRequest=18299

Check warning on line 60 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/consensus/iotv2/container/IoTV2GlobalComponentContainer.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a thread-safe type; adding "volatile" is not enough to make this field thread-safe.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TJcHdOrJ5eEQ1XEEg&open=AZ-TJcHdOrJ5eEQ1XEEg&pullRequest=18299

Check warning on line 248 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/resource/memory/PipeMemoryManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 146).

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-S5a1lNRP0su2tLJ3l&open=AZ-S5a1lNRP0su2tLJ3l&pullRequest=18299