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
Make sure the backup object store is empty when bootstrapping a new cluster #61
Comments
@gbartolini I found an issue, we can't check the "future" object store from the operator since we don't have the |
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
@gbartolini After talking with @mnencia I have a cleared idea and I'll be moving this soon |
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
I believe #62 (comment) applies to this issue as well? |
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
Taking the issue back - I think I can add a quick E2E |
I have added an issue to add E2E tests for the new backup + restore scenarios. |
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store The idea behind this patch it's to prevent any cluster boostrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thuse, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
…t store (#83) The idea behind this patch it's to prevent any cluster bootstrapping if case the target ObjectStore it's already used by another backup or it's not empty at all, thus, we can prevent the overwrite of clusters backups and misunderstanding in the PostgreSQL timeline when trying to recover a pod. Closes #61 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Tao Li <tao.li@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
When bootstrapping a new cluster from a recovery object store, and the target cluster has a backup object store configured, invoke
barman-cloud-check-wal-archive
to make sure that the destination backup object store is empty.This prevents users from erroneously overwrite an existing object store. The same concept can be probably extended to any bootstrap phase.
The text was updated successfully, but these errors were encountered: