Skip to content

Fix concurrent access during TierManager folder reset#18223

Merged
jt2594838 merged 2 commits into
masterfrom
fix_tiermanager
Jul 16, 2026
Merged

Fix concurrent access during TierManager folder reset#18223
jt2594838 merged 2 commits into
masterfrom
fix_tiermanager

Fix concurrent access to tier directory maps

62850a3
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jul 16, 2026 in 2m 37s

Quality Gate failed

Failed conditions
B 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 76 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

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=AZ9pwiQ1YRvqrwCrk53M&open=AZ9pwiQ1YRvqrwCrk53M&pullRequest=18223

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

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=AZ9pwiQ1YRvqrwCrk53N&open=AZ9pwiQ1YRvqrwCrk53N&pullRequest=18223

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

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=AZ9pj6wQSMB422jWCwFC&open=AZ9pj6wQSMB422jWCwFC&pullRequest=18223

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

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=AZ9pj6wQSMB422jWCwFA&open=AZ9pj6wQSMB422jWCwFA&pullRequest=18223

Check failure on line 101 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 33 to the 15 allowed.

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

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

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=AZ9pj6wQSMB422jWCwFB&open=AZ9pj6wQSMB422jWCwFB&pullRequest=18223