Skip to content

Fix downgraded TsFileResource serialization#18157

Open
jt2594838 wants to merge 1 commit into
dev/1.3from
fix_serialization_of_downgraded_resource_dev_1.3
Open

Fix downgraded TsFileResource serialization#18157
jt2594838 wants to merge 1 commit into
dev/1.3from
fix_serialization_of_downgraded_resource_dev_1.3

Fix downgraded resource may not serialize normally

7cb14e6
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 8, 2026 in 2m 18s

Annotations

Check warning on line 549 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 155).

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

Check warning on line 131 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 unnecessary cast to "double".

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

Check warning on line 794 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 210 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/receiver/protocol/IoTDBConfigNodeReceiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this expression which always evaluates to "true"

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

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

Remove this expression which always evaluates to "true"

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

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

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

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

Check warning on line 122 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 unnecessary cast to "double".

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

Check warning on line 419 in iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/receiver/IoTDBFileReceiver.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 105).

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

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

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 73 to 64, Complexity from 15 to 14, Nesting Level from 5 to 2, Number of Variables from 20 to 6.

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

Check warning on line 98 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/twostage/plugin/TwoStageCountProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the "sourcePassword" field and declare it as a local variable in the relevant methods.

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

Check warning on line 75 in iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/sink/PipeReceiverTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 28 in iotdb-core/datanode/src/test/java/org/apache/iotdb/db/queryengine/common/MPPQueryContextTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 511 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/PipeTsFileInsertionEvent.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=AZ9BZnf6VoGYj8JbUo7V&open=AZ9BZnf6VoGYj8JbUo7V&pullRequest=18157

Check warning on line 97 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/twostage/plugin/TwoStageCountProcessor.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the "sourceUserEntity" field and declare it as a local variable in the relevant methods.

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

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

'try' child has incorrect indentation level 16, expected level should be 14.

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

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

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 71 to 64, Complexity from 15 to 14, Nesting Level from 3 to 2, Number of Variables from 14 to 6.

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

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

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

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