Caideyipi opened a new pull request, #19288:
URL: https://github.com/apache/iotdb/pull/19288

   A table-session operation can fail while another thread calls `close()`. 
Without coordinated lifecycle handling, the failed connection can be returned 
to the pool while cleanup creates a replacement, exceeding the configured 
capacity.
   
   This change serializes table-session operations with close, cleans up failed 
or unrestorable sessions, avoids returning connections after pool shutdown, and 
detaches result-set ownership before connection reuse. Regression coverage 
exercises close and RPC failures, state restoration, pool shutdown, and 
result-set reuse.
   
   Validation:
   - `mvn spotless:apply -P with-integration-tests -pl iotdb-client/session`
   - Clean reactor `SessionPoolCloseTest`: 17 tests passed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to