You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-13 01:00:23 +02:00
Add hint to check the log on archive-get/archive-push async error.
If this error is thrown rather than a specific error returned from the async process, it means the async process is unable to write the status files for some reason and the only way to get the error is out of the async log. This hint includes the exact async log path and name to make finding errors easier.
This commit is contained in:
@ -679,7 +679,8 @@ testRun(void)
|
||||
|
||||
TEST_ERROR(
|
||||
cmdArchiveGet(), ArchiveTimeoutError,
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)");
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)\n"
|
||||
"HINT: check '" HRN_PATH "/test1-archive-get-async.log' for errors.");
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("check for missing WAL");
|
||||
@ -688,7 +689,8 @@ testRun(void)
|
||||
|
||||
TEST_ERROR(
|
||||
cmdArchiveGet(), ArchiveTimeoutError,
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)");
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)\n"
|
||||
"HINT: check '" HRN_PATH "/test1-archive-get-async.log' for errors.");
|
||||
|
||||
TEST_RESULT_BOOL(
|
||||
storageExistsP(storageSpool(), STRDEF(STORAGE_SPOOL_ARCHIVE_IN "/000000010000000100000001.ok")), false,
|
||||
@ -758,7 +760,8 @@ testRun(void)
|
||||
|
||||
TEST_ERROR(
|
||||
cmdArchiveGet(), ArchiveTimeoutError,
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)");
|
||||
"unable to get WAL file '000000010000000100000001' from the archive asynchronously after 1 second(s)\n"
|
||||
"HINT: check '" HRN_PATH "/test1-archive-get-async.log' for errors.");
|
||||
|
||||
// Notify child to release lock
|
||||
HRN_FORK_PARENT_NOTIFY_PUT(0);
|
||||
|
Reference in New Issue
Block a user