1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Module/Mock
David Steele 41b00dc204 Fix issue with archive-push-queue-max not being honored on connection error.
If an error occurred while acquiring a lock on a remote server the error would be reported correctly, but the queue max detection code was not reached.  The tests failed to detect this because they fixed the connection before queue max, allowing the ccde to be reached.

Move the queue max code before the lock so it will run even when remote connections are not working.  This means that no attempt will be made to transfer WAL once queue max has been exceeded, but it makes it much more likely that the code will be reach without error.

Update tests to continue errors up to the point where queue max is exceeded.

Reported by Lardière Sébastien.
2018-10-27 16:57:57 +01:00
..
MockAllTest.pm Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
MockArchiveStopTest.pm Fix issue with archive-push-queue-max not being honored on connection error. 2018-10-27 16:57:57 +01:00
MockArchiveTest.pm Add CIFS driver to storage helper for read-only repositories. 2018-09-16 18:41:30 -04:00
MockExpireTest.pm Move archive-stop and expire tests to the mock module. 2018-04-08 12:57:02 -04:00
MockStanzaTest.pm Rename retention-* options to repo-retention-*. 2018-02-19 15:07:24 -05:00