mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Add hint about starting the stanza when WAL segment not found.
If a stop command has been issued the check command fails due to archiving timing out. Provide a hint to document this situation and point the user in the proper direction.
This commit is contained in:
parent
76900d6764
commit
9fd31913a8
@ -14,6 +14,17 @@
|
||||
<release-list>
|
||||
<release date="XXXX-XX-XX" version="2.30dev" title="UNDER DEVELOPMENT">
|
||||
<release-core-list>
|
||||
<release-improvement-list>
|
||||
<release-item>
|
||||
<release-item-contributor-list>
|
||||
<release-item-contributor id="david.christensen"/>
|
||||
<release-item-reviewer id="david.steele"/>
|
||||
</release-item-contributor-list>
|
||||
|
||||
<p>Add hint about starting the stanza when WAL segment not found.</p>
|
||||
</release-item>
|
||||
</release-improvement-list>
|
||||
|
||||
<release-development-list>
|
||||
<release-item>
|
||||
<release-item-contributor-list>
|
||||
@ -8709,6 +8720,11 @@
|
||||
<contributor-id type="github">danielwestermann</contributor-id>
|
||||
</contributor>
|
||||
|
||||
<contributor id="david.christensen">
|
||||
<contributor-name-display>David Christensen</contributor-name-display>
|
||||
<contributor-id type="github">machack666</contributor-id>
|
||||
</contributor>
|
||||
|
||||
<contributor id="david.raftis">
|
||||
<contributor-name-display>David Raftis</contributor-name-display>
|
||||
<contributor-id type="github">dpr11</contributor-id>
|
||||
|
@ -442,7 +442,8 @@ walSegmentFind(const Storage *storage, const String *archiveId, const String *wa
|
||||
ArchiveTimeoutError,
|
||||
"WAL segment %s was not archived before the %" PRIu64 "ms timeout\n"
|
||||
"HINT: check the archive_command to ensure that all options are correct (especially --stanza).\n"
|
||||
"HINT: check the PostgreSQL server log for errors.",
|
||||
"HINT: check the PostgreSQL server log for errors.\n"
|
||||
"HINT: run the 'start' command if the stanza was previously stopped.",
|
||||
strZ(walSegment), timeout);
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,8 @@ testRun(void)
|
||||
walSegmentFind(storageRepo(), strNew("9.6-2"), strNew("123456781234567812345678"), 100), ArchiveTimeoutError,
|
||||
"WAL segment 123456781234567812345678 was not archived before the 100ms timeout\n"
|
||||
"HINT: check the archive_command to ensure that all options are correct (especially --stanza).\n"
|
||||
"HINT: check the PostgreSQL server log for errors.");
|
||||
"HINT: check the PostgreSQL server log for errors.\n"
|
||||
"HINT: run the 'start' command if the stanza was previously stopped.");
|
||||
|
||||
// Check timeout by making the wal segment appear after 250ms
|
||||
HARNESS_FORK_BEGIN()
|
||||
|
@ -2122,7 +2122,8 @@ testRun(void)
|
||||
cmdBackup(), ArchiveTimeoutError,
|
||||
"WAL segment 0000000105DA69C000000000 was not archived before the 100ms timeout\n"
|
||||
"HINT: check the archive_command to ensure that all options are correct (especially --stanza).\n"
|
||||
"HINT: check the PostgreSQL server log for errors.");
|
||||
"HINT: check the PostgreSQL server log for errors.\n"
|
||||
"HINT: run the 'start' command if the stanza was previously stopped.");
|
||||
|
||||
// Remove halted backup so there's no resume
|
||||
storagePathRemoveP(storageRepoWrite(), STRDEF(STORAGE_REPO_BACKUP "/20191016-042640F"), .recurse = true);
|
||||
|
@ -273,7 +273,8 @@ testRun(void)
|
||||
cmdCheck(), ArchiveTimeoutError,
|
||||
"WAL segment 000000010000000100000001 was not archived before the 500ms timeout\n"
|
||||
"HINT: check the archive_command to ensure that all options are correct (especially --stanza).\n"
|
||||
"HINT: check the PostgreSQL server log for errors.");
|
||||
"HINT: check the PostgreSQL server log for errors.\n"
|
||||
"HINT: run the 'start' command if the stanza was previously stopped.");
|
||||
|
||||
// Create WAL segment
|
||||
Buffer *buffer = bufNew(16 * 1024 * 1024);
|
||||
|
Loading…
Reference in New Issue
Block a user