Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Mobc 0.7.2 will introduce retry #285

Open
Sytten opened this issue Apr 8, 2021 · 0 comments
Open

Mobc 0.7.2 will introduce retry #285

Sytten opened this issue Apr 8, 2021 · 0 comments

Comments

@Sytten
Copy link
Contributor

Sytten commented Apr 8, 2021

I wanted to create the issue so we don't forget it.
Basically due to this PR importcjj/mobc#54, if the health check fails it will retry to get a connection.
This is a good behaviour in general, but prisma decided to fail on all broken connections and defer to the client what to do.
This will break this consistent behaviour since sometimes it will retry broken connections (mobc health check) and sometimes it won't (failed perform_io).
A quick fix is to set the max_bad_conn_retries to 0 (currently we use the default of two)

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

No branches or pull requests

1 participant