Skip to content

Conversation

@prestonvasquez
Copy link
Contributor

@prestonvasquez prestonvasquez commented Jul 23, 2024

This PR proposes proper subsetting the number of connections that can be pinned to cursors. If $N$ is the max pool size and $n$ is the max cache size, we would want $n < N - 1$ : shimming 1 connection for propagating ErrMaxReserve. That is, if we are at $n$ cursors pinned, then after each round trip check to see if the response has a cursorID. If so, then close the connection and propagate the error: "cursor could not be pinned to connection: maxed out reserve". This ensures that $N-n > 1$ connections are always available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants