1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test
David Steele 424008d293 Allow files that become zero-length after the backup manifest is built.
It is possible that a file will be be truncated to zero-length after the backup manifest has been built. We could build logic into backupFile() to handle this case but it is hard to test well because of the race condition so tests would need to written directly against backupFile() and backupJobResult(). It hardly seems worth all that effort for a condition that occurs rarely, if ever.

Instead just remove the manifest check and add tests to restore to make sure it handles bundled zero-length files correctly. Logging will show that the file was bundled so if it happens a lot (which seems very unlikely) then we can think about an alternate implementation.
2022-03-23 10:41:36 -06:00
..
certificate Add TLS Server. 2021-10-18 14:32:41 -04:00
code-count Improve path validation for repo-* commands. 2022-03-22 07:50:26 -06:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
expect Allow repo-hardlink option to be changed after full backup. 2022-03-22 08:35:34 -06:00
lib/pgBackRestTest Allow repo-hardlink option to be changed after full backup. 2022-03-22 08:35:34 -06:00
src Allow files that become zero-length after the backup manifest is built. 2022-03-23 10:41:36 -06:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Use Rocky Linux for documentation builds instead of CentOS. 2021-10-28 15:15:49 -04:00
container.yaml Fix language in rh7 test container for aarch64. 2022-01-26 13:22:31 -06:00
define.yaml Improve path validation for repo-* commands. 2022-03-22 07:50:26 -06:00
Dockerfile Use vagrant user in the Docker container. 2022-02-26 13:50:30 -06:00
test.pl Remove extraneous double spaces in code and comments. 2022-03-15 17:55:48 -06:00
Vagrantfile Update Vagrantfile to Ubuntu 20.04. 2021-10-13 13:21:04 -04:00