1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test
Viktor Kurilko 274bb24a5a
Stabilize async archiving in integration tests.
The integration tests could fail if:

1. After restoring the PostgreSQL instance the recovery process starts, which calls asynchronous archive-get.
2. After archive-get checks the existence of the queue directory, but before writing the WAL file, there are restores when the next test is begun, which leads to the deletion of the queue directory.
3. Since the directory no longer exists, writing the WAL file will fail, and archive-get will write the error file to the queue.
4. A new PostgreSQL instance will start and the recovery process will begin, which requests the WAL file.
5. The new archive-get looks into the queue directory, finds the error file, and throws out the error, after which the PostgreSQL recovery fails because the previous archive-get background process has not finished yet.

This patch fixes the problem by using a separate spool directory for each test.
2024-11-13 09:56:42 -05:00
..
certificate Support IP-based SANs for TLS certificate validation. 2024-07-11 10:54:20 +07:00
code-count Remove support for PostgreSQL 9.4. 2024-10-21 13:56:04 +03:00
data Remove test data files made obsolete by d41b21c8. 2024-03-30 10:43:05 +11:00
lib/pgBackRestTest/Common Remove support for PostgreSQL 9.4. 2024-10-21 13:56:04 +03:00
src Stabilize async archiving in integration tests. 2024-11-13 09:56:42 -05:00
.gitignore
ci.pl Migrate CentOS 7 integration tests to Rocky 8. 2024-06-11 15:20:04 +10:00
container.yaml Update CI containers to include newest PostgreSQL patch releases. 2024-10-16 12:14:12 +03:00
define.yaml Improve SFTP error messages. 2024-10-10 11:17:35 +03:00
Dockerfile Migrate coverage testing to C and remove dependency on lcov. 2024-05-31 14:52:07 +10:00
test.pl Remove autoconf/make build. 2024-10-21 13:32:35 +03:00
uncrustify.cfg Check for stray execute permissions in test.pl --code-format. 2023-02-01 12:57:04 +07:00
Vagrantfile Migrate coverage testing to C and remove dependency on lcov. 2024-05-31 14:52:07 +10:00