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

ENT-10647: Added safety for hub upgrade in packaging scriptlets #1294

Closed
wants to merge 3 commits into from

Conversation

craigcomstock
Copy link
Contributor

  • Improved resilience of hub package installer in case of postgresql server errors
  • Added better pg_upgrade failure handling in package install scripts
  • Added safety around stopping postgresql server during upgrade

…rver errors

A case was found where postgresql could not be started.
Due to set -e being in effect the else condition if the start fails was not used when it should have been.
Wrapped the region of script in a subshell without error handling

Ticket: ENT-10647
Changelog: title
Try to print last lines of any log files that are appropriate.
Day boundaries could affect this code but I didn't want to tail all the logs there if there were many.

Ticket: ENT-10647
Changelog: title
Previously we executed pg_ctl stop (aka "Fast" stop) and assumed the server would be stopped immediately which is not guaranteed.

Now wait up to 5 seconds for the server to stop.
If it does not stop in that time, fail the package postinstall script.

Ticket: ENT-10647
Changelog: title
@craigcomstock
Copy link
Contributor Author

need to use non-fork branch :p

@craigcomstock craigcomstock deleted the ENT-10647/master branch September 25, 2023 21:24
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.

1 participant