dajiaohuang opened a new pull request, #460:
URL: https://github.com/apache/commons-pool/pull/460

   This addresses [POOL-432](https://issues.apache.org/jira/browse/POOL-432). 
When a factory failure is recorded with no waiting borrowers, no adder thread 
is created. After successful makes evict the failure from the log, 
`runChecks()` recovers the factory but previously called `adder.kill()` 
unconditionally, throwing a `NullPointerException` and terminating the monitor.
   
   Guard the adder shutdown when no adder exists, and add a synthetic 
failing-factory regression for the failure/recovery transition.
   
   Validation:
   - The focused regression failed on the unmodified base with the reported 
`NullPointerException` and passed after the fix.
   - `mvn clean verify` passed (Maven 3.9.11, Temurin JDK 26.0.2.1).
   
   AI-generated text: this PR description was drafted with OpenAI Codex 
(gpt-6-luna); no human review had occurred when it was submitted. The commit 
includes the tool provenance token recommended by ASF guidance.
   


-- 
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