We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Got some strange behavior when by error make DELTA backup before any FULL in stream remote mode
root@backupserver:~/backup-tools# pg_probackup-10 show -B /backup/postgresql/backup --instance database ============================================================================================================== Instance Version ID Recovery Time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status ============================================================================================================== root@backupserver:~/backup-tools# backupserver:~/backup-tools# pg_probackup-10 \ > backup \ > -B \ > /backup/postgresql/backup \ > --stream \ > -j \ > 1 \ > --retention-redundancy=14 \ > --delete-expired \ > --delete-wal \ > --instance \ > database \ > --remote-host \ > databaseserver \ > --remote-user \ > postgres \ > -U \ > probackup \ > -d \ > pg_probackup \ > --log-level-file=verbose \ > --log-filename=database-20190726T182724.log \ > --log-directory=/backup/postgresql/backup/log/database \ > --log-rotation-age=0 \ > --ssh-options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=5' \ > --compress \ > --compress-level \ > 1 \ > --backup-mode=DELTA INFO: Backup start, pg_probackup version: 2.1.3, backup ID: PV9J42, backup mode: delta, instance: database, stream: true, remote true ERROR: Valid backup on current timeline is not found. Create new FULL backup before an incremental one. WARNING: Backup PV9J42 is running, setting its status to ERROR backupserver:~/backup-tools# pg_probackup-10 show -B /backup/postgresql/backup --instance database ======================================================================================================================= Instance Version ID Recovery Time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status ======================================================================================================================= database 10 PV9J42 ---- DELTA STREAM 1 / 0 0s 0B 0/0 0/0 ERROR backupserver:~/backup-tools# pg_probackup-10 \ > backup \ > -B \ > /backup/postgresql/backup \ > --stream \ > -j \ > 1 \ > --retention-redundancy=14 \ > --delete-expired \ > --delete-wal \ > --instance \ > database \ > --remote-host \ > databaseserver \ > --remote-user \ > postgres \ > -U \ > probackup \ > -d \ > pg_probackup \ > --log-level-file=verbose \ > --log-filename=database-20190726T182724.log \ > --log-directory=/backup/postgresql/backup/log/database \ > --log-rotation-age=0 \ > --ssh-options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=5' \ > --compress \ > --compress-level \ > 1 \ > --backup-mode=FULL INFO: Backup start, pg_probackup version: 2.1.3, backup ID: PV9J61, backup mode: full, instance: database, stream: true, remote true INFO: Start transfering data files INFO: Data files are transfered INFO: wait for pg_stop_backup() INFO: pg_stop backup() successfully executed INFO: Validating backup PV9J61 INFO: Backup PV9J61 data files are valid INFO: Backup PV9J61 completed INFO: Evaluate backups by retention INFO: Backup PV9J61, mode: FULL, status: OK. Redundancy: 1/14, Time Window: 0.00d/0d. Active INFO: Backup PV9J42, mode: DELTA, status: ERROR. Redundancy: 2/14, Time Window: 0.00d/0d. Active ERROR: Not going to purge WAL because LSN is invalid backupserver:~/backup-tools# echo $? 1 root@backupserver:~/backup-tools# pg_probackup-10 show -B /backup/postgresql/backup --instance database ==================================================================================================================================== Instance Version ID Recovery Time Mode WAL Current/Parent TLI Time Data Start LSN Stop LSN Status ==================================================================================================================================== database 10 PV9J61 2019-07-26 18:54:46+00 FULL STREAM 1 / 0 50s 296MB 4/1B000028 4/1B00BD50 OK database 10 PV9J42 ---- DELTA STREAM 1 / 0 0s 0B 0/0 0/0 ERROR
so FULL backup end with return code <> 0
The text was updated successfully, but these errors were encountered:
Definitely a bug, for WAL purge purposes we should have selected oldest backup with valid START LSN, not just oldest backup.
Thanks for the feedback!
Sorry, something went wrong.
[Issue #103] select oldest backup with valid start_lsn and tli to det…
759aefc
…ermine oldest lsn for WAL purge
Fixed, TODO: improve test coverage with this case.
[Issue #103] minor fix
db901a7
Test added, merged to master
No branches or pull requests
Got some strange behavior when by error make DELTA backup before any FULL in stream remote mode
so FULL backup end with return code <> 0
The text was updated successfully, but these errors were encountered: