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

[bitnami/postgresql] The database is not shut down cleanly and pods start with automatic recovery #25663

Open
em- opened this issue May 10, 2024 · 1 comment
Assignees
Labels
postgresql tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@em-
Copy link

em- commented May 10, 2024

Name and Version

bitnami/postgresql 15.2.9

What architecture are you using?

None

What steps will reproduce the bug?

  1. deploy the postgresql chart
  2. initiate a pod rollout
  3. check the logs of the new pod
  4. find out that it recovered from a unclean shutdown

Are you using any custom parameters or values?

None relevant

What is the expected behavior?

The database should be shut down cleanly.

What do you see instead?

2024-05-06 21:57:04.197 GMT [96] LOG:  database system was interrupted; last known up at 2024-05-06 21:52:59 GMT
2024-05-06 21:57:04.387 GMT [96] LOG:  database system was not properly shut down; automatic recovery in progress

Additional information

The bitnami/postgresql-ha chart already sets a preStop hooks to initiate the clean shutdown of the database. Ideally the bitnami/postgresql chart should do the same, since relying only on SIGTERM is suboptimal as it does not terminate existing client connections.

@em- em- added the tech-issues The user has a technical issue about an application label May 10, 2024
@github-actions github-actions bot added the triage Triage is needed label May 10, 2024
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants