Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Extension Point To Force Eviction #2184

Open
rreich opened this issue Mar 4, 2024 · 0 comments
Open

Introduce Extension Point To Force Eviction #2184

rreich opened this issue Mar 4, 2024 · 0 comments

Comments

@rreich
Copy link

rreich commented Mar 4, 2024

With the SQLExceptionOverride it is already possible to prevent the eviction of a connection.
What we are missing is the opposite: Force the eviction based on an SQLException that would by default not trigger an eviction.

While it would probably be possible to make the ERROR_STATES and ERROR_CODES configurable, it would probably make more sense to have a feature like the SQLExceptionOverride or even extend the existing feature by moving the call of SQLExceptionOverride#adjudicate up, out of the surrounding if and adding a FORCE_EVICT entry to the enum.

Another suggestion from an existing issue was to allow overriding the complete checkException(SQLException) method, but I guess that would be harder to use and would be another different concept for a very similar use-case. See #2015

Original use-case: #2185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant