LuciferYang opened a new pull request #33831:
URL: https://github.com/apache/spark/pull/33831


   ### What changes were proposed in this pull request?
   This pr upgrade Apache `commons-pool2` from `2.6.2` to `2.11.1`, `2.11.1` is 
a Java 8 build version and `2.6.2` is still a Java 7 build version.
   
   
   ### Why are the changes needed?
   Bring some bug fix as follows:
   
   - DefaultPooledObject.getIdleTime() drops nanoseconds on Java 9 and greater
   - POOL-361:  Move validation for newly created objects into create(). Fixes 
#23
   - POOL-374:  
org.apache.commons.pool2.impl.GenericKeyedObjectPool.returnObject(K, T) should 
throw IllegalStateException instead of NullPointerException when a key is not 
found in the pool map. 
   - POOL-376:  Fixed regression from original fix for POOL-356 which could 
result in NPE when destroying objects. 
   - POOL-326:  Eliminated NPE / ISE exceptions due to keyed pools being 
prematurely removed.
   - Close BufferedOutputStream in test before calling toString on underlying 
BufferedOutputStream #26.
   - POOL-386:  Refactored EvictionTimer usage tracking to fix POOL-386 and 
handle abandoned pools. #32
   - Make Duration setters use their respective default values when null
   - Call swallowException(Exception) instead of printing exceptions to the 
console in GenericKeyedObjectPool.removeAbandoned(AbandonedConfig) and 
GenericObjectPool.removeAbandoned(AbandonedConfig)
   - Getting a PooledObject's active duration returns a negative duration when 
the object is borrowed but not returned
   
   Other changes: 
[RELEASE-NOTES](https://gitbox.apache.org/repos/asf?p=commons-pool.git;a=blob;f=RELEASE-NOTES.txt)
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Pass the Jenkins or GitHub Action
   
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to