Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

check for enabled backup after sourcing environment #581

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

mindrunner
Copy link
Contributor

@mindrunner mindrunner commented Feb 28, 2023

What this PR does / why we need it

Recently, some heavy refactoring in the backup/restore procedure took place. This also changed the way how the environment variables etc were set up for the statefulset.

With more recent helm chart versions, it is not possible anymore to restore a replica node from pgbackrest due to checking too early in script if backups are enabled or not.

Furthermore, slaves are not able to fetch WAL from archive, leading to broken replicas (master already disposed WAL segment).

I ended up with a degraded cluster multiple times in the last weeks. This seems to fix it for me.

Which issue this PR fixes

Checklist

@mindrunner mindrunner requested a review from a team as a code owner February 28, 2023 15:00
@CLAassistant
Copy link

CLAassistant commented Feb 28, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@mathisve mathisve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! lgmt!

@mindrunner
Copy link
Contributor Author

What's missing for merge?

@mathisve
Copy link
Contributor

mathisve commented Mar 8, 2023

I was waiting on a potential review from the o11y team.
Just going to merge it for now.

Thanks for contributing!

@mathisve mathisve merged commit 8484516 into timescale:main Mar 8, 2023
@mathisve mathisve mentioned this pull request Mar 8, 2023
mathisve added a commit to mathisve/ts-helm-charts that referenced this pull request Mar 27, 2023
check for enabled backup after sourcing environment
mathisve added a commit to mathisve/ts-helm-charts that referenced this pull request Mar 28, 2023
check for enabled backup after sourcing environment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: Error creating replica using method pgbackrest
3 participants