[JAVA-4451] Fix the await condition in OpenConcurrencyLimiter.acquirePermitOrGetAvailableOpenedConnection Created: 25/Jan/22 Updated: 28/Oct/23 Resolved: 26/Jan/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Connection Management |
| Affects Version/s: | None |
| Fix Version/s: | 4.5.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Valentin Kavalenka | Assignee: | Valentin Kavalenka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||
| Description |
|
Acquiring locks unfairly in DefaultConnectionPool.OpenConcurrencyLimiter.releasePermit revealed a bug in OpenConcurrencyLimiter.acquirePermitOrGetAvailableOpenedConnection, which manifested itself by failing the pool-checkout-minPoolSize-connection-maxConnecting.json test. |
| Comments |
| Comment by Githook User [ 26/Jan/22 ] |
|
Author: {'name': 'Valentin Kovalenko', 'email': 'valentin.kovalenko@mongodb.com', 'username': 'stIncMale'}Message: Change the `while(complexCondition) { await }style in `ConcurrentPool` The change is similar to one done in |
| Comment by Githook User [ 26/Jan/22 ] |
|
Author: {'name': 'Valentin Kovalenko', 'email': 'valentin.male.kovalenko@gmail.com', 'username': 'stIncMale'}Message: Fix the `await` condition in `OpenConcurrencyLimiter.acquirePermitOrGetAvailableOpenedConnection` (#858)
|