You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When create BoundedPoolConfig with maxTotal = -1 and try to acquire a connection from pool throws java.util.NoSuchElementException: Pool exhausted.
Documentation says:
/**
* Configures the maximum number of objects that can be allocated by the pool (checked out to clients, or idle awaiting
* checkout) at a given time. When negative, there is no limit to the number of objects that can be managed by the pool
* at one time.
*
* @param maxTotal maximum number of objects that can be allocated by the pool.
* @return {@code this} {@link Builder}.
*/
public Builder maxTotal(int maxTotal)
Expected behavior/code
To have a Pool able to acquire connections with no limit.
Environment
Lettuce version(s): [6.1.5.RELEASE]
Redis version: [6.2.3]
The text was updated successfully, but these errors were encountered:
mp911de
changed the title
BoundedPoolConfig with -1 maxTotal doesnt work as unlimited poolBoundedPoolConfig with -1 as maxTotal does not work as unlimited pool
Jan 4, 2022
Bug Report
Current Behavior
When create BoundedPoolConfig with maxTotal = -1 and try to acquire a connection from pool throws java.util.NoSuchElementException: Pool exhausted.
Documentation says:
Expected behavior/code
To have a Pool able to acquire connections with no limit.
Environment
The text was updated successfully, but these errors were encountered: