Skip to content

Commit

Permalink
[POOL-418] The maximum wait time for GenericObjectPool.borrowObject(*)
Browse files Browse the repository at this point in the history
may exceed expectations due to a spurious thread wakeup

- Revisit this issue with 2 changes
- The remaining duration was incorrectly calculated and the method did
not end up waiting long enough
- Recompute the remaining duration an additional time when we block when
exhausted
  • Loading branch information
garydgregory committed Feb 8, 2025
1 parent 1a9e8b7 commit d53e9c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ The <action> type attribute can be add,update,fix,remove.
<release version="2.12.2" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
<!-- FIX -->
<action type="fix" dev="ggregory" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
<action type="fix" issue="POOL-418" dev="ggregory" due-to="Gary Gregory">The maximum wait time for GenericObjectPool.borrowObject(*) may exceed expectations due to a spurious thread wakeup.</action>
<action type="fix" issue="POOL-418" dev="ggregory" due-to="Gary Gregory">The maximum wait time for GenericObjectPool.borrowObject(*) may exceed expectations due to a spurious thread wakeup.
The remaining duration was incorrectly calculated and the method did not end up waiting long enough.
Recompute the remaining duration an additional time when we block when exhausted.
</action>
<!-- ADD -->
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 79 to 81.</action>
Expand Down

0 comments on commit d53e9c5

Please sign in to comment.