-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: postgres health check reporting any db without checksums as unhealthy #10178
Conversation
0326331
to
1b7f282
Compare
Ty. I should have known everyone would just copy paste the new changes haha |
did not have this before the 1.106 update |
|
This looks fine to me. Please use the updated healthcheck command found in this PR that contains the COALESCE command The failure_count is a docker internal counter that increments with successive failed health checks. If it was a checksum error, it should appear in the message itself. In this case the result is NULL which appears as empty (checksums disabled). |
Ah, well that's not confusing at all 🤣 It did make me think though, do we have docs to help people recover if they do end up with a legitimate checksum error? Or at least somewhere to point them at in the postgres docs? |
Practically speaking, the answer is to restore from backup. The checksums are only sufficient to detect corruption, not to restore it. I can add that to the FAQ entry about it though. |
Description
This is a small change to make the health check respond as healthy if checksums are disabled and it gets a successful response from Postgres. It currently bogusly reports existing databases as unhealthy.
Fixes #10134