Skip to content

[To dev/1.3] Fix SessionPool result-set cleanup and shutdown handling (#19288) - #19292

Merged
Caideyipi merged 1 commit into
dev/1.3from
cp-19288-dev13-session-cleanup
Nov 16, 2026
Merged

Caideyipi merged 1 commit into
dev/1.3from
cp-19288-dev13-session-cleanup

Fix pooled session cleanup and close races (#19288)

650eaf2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 16, 2026 in 2m 26s

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 791 in iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

"wrapper" is a method parameter, and should not be used for synchronization.

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

Check warning on line 129 in iotdb-client/session/src/test/java/org/apache/iotdb/session/pool/SessionPoolCloseTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Distance between variable 'firstClose' 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=AaHjgSt10KWq6HTBq2OT&open=AaHjgSt10KWq6HTBq2OT&pullRequest=19292