[Fix] Keep heartbeat alive when metadata lease is fenced - #18343
[Fix] Keep heartbeat alive when metadata lease is fenced#18343Caideyipi wants to merge 2 commits into
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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