Skip to content

[Fix] Keep heartbeat alive when metadata lease is fenced - #18343

Open
Caideyipi wants to merge 2 commits into
masterfrom
fix/heartbeat-metadata-lease-fence
Open

[Fix] Keep heartbeat alive when metadata lease is fenced#18343
Caideyipi wants to merge 2 commits into
masterfrom
fix/heartbeat-metadata-lease-fence

Stabilize metadata lease heartbeat test

48b5374
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 30, 2026 in 4m 15s

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 30 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/scheduler/LockQueue.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-r-Ef0DodUoTtpuo9G&open=AZ-r-Ef0DodUoTtpuo9G&pullRequest=18343

Check failure on line 1376 in iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 120 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/PasswordChangeAuditContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof AuthorStatement authorstatement'

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

Check warning on line 93 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/DNAuditLogger.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Distance between variable 'address' declaration and its first usage is 6, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value).

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

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

Line is longer than 100 characters (found 111).

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

Check warning on line 484 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 118).

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

Check warning on line 478 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.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-r-EeiDodUoTtpuo85&open=AZ-r-EeiDodUoTtpuo85&pullRequest=18343

Check warning on line 3714 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Expected @throws tag for 'IllegalStateException'.

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

Check warning on line 92 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/DNAuditLogger.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Distance between variable 'username' declaration and its first usage is 6, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value).

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

Check warning on line 72 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/PasswordChangeAuditTask.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Error.

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

Check warning on line 480 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/TsFileInsertionEventScanParser.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 134 to 64, Complexity from 34 to 14, Nesting Level from 4 to 2, Number of Variables from 8 to 6.

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

Check warning on line 73 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.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-r-EiIDodUoTtpuo9K&open=AZ-r-EiIDodUoTtpuo9K&pullRequest=18343

Check warning on line 189 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/DNAuditLogger.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

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

Check warning on line 464 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 101).

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

Check warning on line 1167 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-r-EbTDodUoTtpuo8r&open=AZ-r-EbTDodUoTtpuo8r&pullRequest=18343

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

Fix this access that may throw a NullPointerException when executed.

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

Check warning on line 1029 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 108).

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

Check warning on line 438 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-r-EbTDodUoTtpuo8o&open=AZ-r-EbTDodUoTtpuo8o&pullRequest=18343

Check warning on line 1376 in iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.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 106 to 64, Complexity from 16 to 14, Nesting Level from 4 to 2, Number of Variables from 13 to 6.

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

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

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

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

Check failure on line 355 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.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-r-EeiDodUoTtpuo80&open=AZ-r-EeiDodUoTtpuo80&pullRequest=18343

Check warning on line 481 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Line is longer than 100 characters (found 125).

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

Check warning on line 128 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/audit/PasswordChangeAuditContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof RelationalAuthorStatement relationalauthorstatement'

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

Check warning on line 554 in iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/AbstractOperatePipeProcedureV2.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'case' child has incorrect indentation level 10, expected level should be 6.

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

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

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

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