diff --git a/bin/pgbackrest b/bin/pgbackrest index 8ee23006a..02160c01d 100755 --- a/bin/pgbackrest +++ b/bin/pgbackrest @@ -9,12 +9,12 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; # Convert die to confess to capture the stack trace $SIG{__DIE__} = sub { Carp::confess @_ }; use File::Basename qw(dirname); -use Scalar::Util qw(blessed); use lib dirname($0) . '/../lib'; use pgBackRest::Archive; @@ -28,9 +28,9 @@ use pgBackRest::Protocol::Common; use pgBackRest::Protocol::Protocol; #################################################################################################################################### -# START EVAL BLOCK TO CATCH ERRORS AND STOP PROCESSES +# Run in eval block to catch errors #################################################################################################################################### -eval +local $EVAL_ERROR = undef; eval { ################################################################################################################################ # Load command line parameters and config @@ -242,25 +242,20 @@ eval lockRelease(); exitSafe(0); -}; -#################################################################################################################################### -# CHECK FOR ERRORS AND STOP PROCESSES -#################################################################################################################################### -if ($@) -{ - my $oMessage = $@; - - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) - { - exitSafe($oMessage->code()); - } - - exitSafe(-1); - confess $oMessage; + # It shouldn't be possible to get here + &log(ASSERT, 'execution reached invalid location in ' . __FILE__ . ', line ' . __LINE__); + exit ERROR_ASSERT; } -# It shouldn't be possible to get here so throw an error if it happens. Currently this can be caused by the error result being -# cleared out - this will be fixed by using Try::Tiny. -exit ERROR_UNKNOWN; +#################################################################################################################################### +# Check for errors +#################################################################################################################################### +or do +{ + exitSafe(undef, $EVAL_ERROR); +}; + +# It shouldn't be possible to get here +&log(ASSERT, 'execution reached invalid location in ' . __FILE__ . ', line ' . __LINE__); +exit ERROR_ASSERT; diff --git a/doc/doc.pl b/doc/doc.pl index e630e8cbc..66816415c 100755 --- a/doc/doc.pl +++ b/doc/doc.pl @@ -9,6 +9,7 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; $SIG{__DIE__} = sub { Carp::confess @_ }; @@ -16,7 +17,6 @@ use Cwd qw(abs_path); use File::Basename qw(dirname); use Getopt::Long qw(GetOptions); use Pod::Usage qw(pod2usage); -use Scalar::Util qw(blessed); use Storable; use lib dirname($0) . '/lib'; @@ -29,6 +29,7 @@ use BackRestDoc::Latex::DocLatex; use BackRestDoc::Markdown::DocMarkdown; use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::Config::Config; @@ -266,20 +267,24 @@ eval { $oManifest->cacheWrite(); } -}; + + # Exit with success + exit 0; +} #################################################################################################################################### # Check for errors #################################################################################################################################### -if ($@) +or do { - my $oMessage = $@; + # If a backrest exception then return the code + exit $EVAL_ERROR->code() if (isException($EVAL_ERROR)); - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) - { - exit $oMessage->code(); - } + # Else output the unhandled error + print $EVAL_ERROR; + exit ERROR_UNHANDLED; +}; - confess $oMessage; -} +# It shouldn't be possible to get here +&log(ASSERT, 'execution reached invalid location in ' . __FILE__ . ', line ' . __LINE__); +exit ERROR_ASSERT; diff --git a/doc/lib/BackRestDoc/Common/Doc.pm b/doc/lib/BackRestDoc/Common/Doc.pm index d9c50e273..2001ad366 100644 --- a/doc/lib/BackRestDoc/Common/Doc.pm +++ b/doc/lib/BackRestDoc/Common/Doc.pm @@ -6,10 +6,10 @@ package BackRestDoc::Common::Doc; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use File::Basename qw(dirname); use Scalar::Util qw(blessed); - use XML::Checker::Parser; use lib dirname($0) . '/../lib'; @@ -67,14 +67,16 @@ sub new }; $oTree = $oParser->parsefile($self->{strFileName}); - }; - # Report any error that stopped parsing - if ($@) - { - $@ =~ s/at \/.*?$//s; # remove module line number - die "malformed xml in '$self->{strFileName}':\n" . trim($@); + return true; } + # Report any error that stopped parsing + or do + { + my $strException = $EVAL_ERROR; + $strException =~ s/at \/.*?$//s; # remove module line number + die "malformed xml in '$self->{strFileName}':\n" . trim($strException); + }; # Parse and build the doc $self->{oDoc} = $self->build($self->parse(${$oTree}[0], ${$oTree}[1])); diff --git a/doc/lib/BackRestDoc/Common/DocConfig.pm b/doc/lib/BackRestDoc/Common/DocConfig.pm index f730455e1..076eb6ace 100644 --- a/doc/lib/BackRestDoc/Common/DocConfig.pm +++ b/doc/lib/BackRestDoc/Common/DocConfig.pm @@ -11,7 +11,6 @@ use Exporter qw(import); our @EXPORT = qw(); use File::Basename qw(dirname); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::Config::Config; diff --git a/doc/lib/BackRestDoc/Common/DocExecute.pm b/doc/lib/BackRestDoc/Common/DocExecute.pm index 6d526c697..fef18ffc8 100644 --- a/doc/lib/BackRestDoc/Common/DocExecute.pm +++ b/doc/lib/BackRestDoc/Common/DocExecute.pm @@ -10,10 +10,9 @@ use Carp qw(confess); use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); use Storable qw(dclone); -use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Ini; use pgBackRest::Common::Log; use pgBackRest::Common::String; @@ -21,7 +20,6 @@ use pgBackRest::Config::Config; use pgBackRest::FileCommon; use pgBackRest::Version; -use lib dirname($0) . '/../test/lib'; use pgBackRestTest::Common::ExecuteTest; use pgBackRestTest::Common::HostTest; use pgBackRestTest::Common::HostGroupTest; @@ -817,22 +815,22 @@ sub cachePop if (!defined($hCache)) { - confess &log(ERROR, 'unable to get index from cache', -1); + confess &log(ERROR, 'unable to get index from cache', ERROR_FILE_INVALID); } if (!defined($$hCache{key})) { - confess &log(ERROR, 'unable to get key from cache', -1); + confess &log(ERROR, 'unable to get key from cache', ERROR_FILE_INVALID); } if (!defined($$hCache{type})) { - confess &log(ERROR, 'unable to get type from cache', -1); + confess &log(ERROR, 'unable to get type from cache', ERROR_FILE_INVALID); } if ($$hCache{type} ne $strCacheType) { - confess &log(ERROR, 'types do not match, cache is invalid', -1); + confess &log(ERROR, 'types do not match, cache is invalid', ERROR_FILE_INVALID); } if ($oJSON->encode($$hCache{key}) ne $oJSON->encode($hCacheKey)) @@ -840,7 +838,7 @@ sub cachePop confess &log(ERROR, "keys at index $self->{iCacheIdx} do not match, cache is invalid." . "\ncache key: " . $oJSON->encode($$hCache{key}) . - "\ncurrent key: " . $oJSON->encode($hCacheKey), -1); + "\ncurrent key: " . $oJSON->encode($hCacheKey), ERROR_FILE_INVALID); } $bCacheHit = true; diff --git a/doc/lib/BackRestDoc/Common/DocManifest.pm b/doc/lib/BackRestDoc/Common/DocManifest.pm index 5b593d432..64d7aab72 100644 --- a/doc/lib/BackRestDoc/Common/DocManifest.pm +++ b/doc/lib/BackRestDoc/Common/DocManifest.pm @@ -12,9 +12,7 @@ use Exporter qw(import); our @EXPORT = qw(); use File::Basename qw(dirname); use JSON::PP; -use Scalar::Util qw(blessed); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::FileCommon; diff --git a/doc/lib/BackRestDoc/Common/DocRender.pm b/doc/lib/BackRestDoc/Common/DocRender.pm index 24cb659ed..ccfcbf213 100644 --- a/doc/lib/BackRestDoc/Common/DocRender.pm +++ b/doc/lib/BackRestDoc/Common/DocRender.pm @@ -9,9 +9,7 @@ use Carp qw(confess); use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; diff --git a/doc/lib/BackRestDoc/Custom/DocCustomRelease.pm b/doc/lib/BackRestDoc/Custom/DocCustomRelease.pm index e80353b5d..c59a7a9a1 100644 --- a/doc/lib/BackRestDoc/Custom/DocCustomRelease.pm +++ b/doc/lib/BackRestDoc/Custom/DocCustomRelease.pm @@ -9,9 +9,7 @@ use Carp qw(confess); use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::Config::Config; diff --git a/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm b/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm index 216e639b7..4b08a2df7 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlBuilder.pm @@ -9,10 +9,7 @@ use Carp qw(confess); use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use File::Copy; -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; diff --git a/doc/lib/BackRestDoc/Html/DocHtmlElement.pm b/doc/lib/BackRestDoc/Html/DocHtmlElement.pm index 0c077c158..bd362cf1e 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlElement.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlElement.pm @@ -9,11 +9,8 @@ use Carp qw(confess); use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use File::Copy; use Scalar::Util qw(blessed); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; #################################################################################################################################### diff --git a/doc/lib/BackRestDoc/Html/DocHtmlPage.pm b/doc/lib/BackRestDoc/Html/DocHtmlPage.pm index 1c4770eff..c30a5330f 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlPage.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlPage.pm @@ -11,11 +11,7 @@ use Carp qw(confess); use Data::Dumper; use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use File::Copy; -use Storable qw(dclone); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::Config::ConfigHelp; diff --git a/doc/lib/BackRestDoc/Html/DocHtmlSite.pm b/doc/lib/BackRestDoc/Html/DocHtmlSite.pm index 6038119ab..4a4fbc6af 100644 --- a/doc/lib/BackRestDoc/Html/DocHtmlSite.pm +++ b/doc/lib/BackRestDoc/Html/DocHtmlSite.pm @@ -6,6 +6,7 @@ package BackRestDoc::Html::DocHtmlSite; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Data::Dumper; use Exporter qw(import); @@ -13,10 +14,10 @@ use Exporter qw(import); use File::Basename qw(dirname); use File::Copy; use POSIX qw(strftime); -use Scalar::Util qw(blessed); use Storable qw(dclone); use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::FileCommon; @@ -129,14 +130,14 @@ sub process $strHtml = $self->{oManifest}->variableReplace( (new BackRestDoc::Html::DocHtmlPage($self->{oManifest}, $strPageId, $self->{bExe}))->process()); - }; - if ($@) + return true; + } + or do { - my $oMessage = $@; + my $oException = $@; - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception') && $oMessage->code() == -1) + if (isException($oException) && $oException->code() == ERROR_FILE_INVALID) { my $oRenderOut = $self->{oManifest}->renderOutGet(RENDER_TYPE_HTML, $strPageId); $self->{oManifest}->cacheReset($$oRenderOut{source}); @@ -147,9 +148,9 @@ sub process } else { - confess $@; + confess $oException; } - } + }; # Save the html page fileStringWrite("$self->{strHtmlPath}/${strPageId}.html", $strHtml, false); diff --git a/doc/lib/BackRestDoc/Latex/DocLatex.pm b/doc/lib/BackRestDoc/Latex/DocLatex.pm index 90f74a474..a08a5fe02 100644 --- a/doc/lib/BackRestDoc/Latex/DocLatex.pm +++ b/doc/lib/BackRestDoc/Latex/DocLatex.pm @@ -6,6 +6,7 @@ package BackRestDoc::Latex::DocLatex; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Data::Dumper; use Exporter qw(import); @@ -13,10 +14,10 @@ use Exporter qw(import); use File::Basename qw(dirname); use File::Copy; use POSIX qw(strftime); -use Scalar::Util qw(blessed); use Storable qw(dclone); use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::FileCommon; @@ -112,14 +113,14 @@ sub process # Save the html page $strLatex .= $oDocLatexSection->process(); - }; - if ($@) + return true; + } + or do { - my $oMessage = $@; + my $oException = $EVAL_ERROR; - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception') && $oMessage->code() == -1) + if (isException($oException) && $oException->code() == ERROR_FILE_INVALID) { my $oRenderOut = $self->{oManifest}->renderOutGet(RENDER_TYPE_HTML, $strPageId); $self->{oManifest}->cacheReset($$oRenderOut{source}); @@ -130,7 +131,7 @@ sub process # Save the html page $strLatex .= $oDocLatexSection->process(); } - } + }; } $strLatex .= "\n% " . ('-' x 130) . "\n% End document\n% " . ('-' x 130) . "\n\\end{document}\n"; diff --git a/doc/lib/BackRestDoc/Latex/DocLatexSection.pm b/doc/lib/BackRestDoc/Latex/DocLatexSection.pm index f0b1734c2..d04308515 100644 --- a/doc/lib/BackRestDoc/Latex/DocLatexSection.pm +++ b/doc/lib/BackRestDoc/Latex/DocLatexSection.pm @@ -8,14 +8,9 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess); -use Data::Dumper; use Exporter qw(import); our @EXPORT = qw(); -use File::Basename qw(dirname); -use File::Copy; -use Storable qw(dclone); -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Ini; use pgBackRest::Common::Log; use pgBackRest::Common::String; diff --git a/doc/release.pl b/doc/release.pl index 87affff57..9b87292dc 100755 --- a/doc/release.pl +++ b/doc/release.pl @@ -9,6 +9,7 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; $SIG{__DIE__} = sub { Carp::confess @_ }; @@ -16,7 +17,6 @@ use Cwd qw(abs_path); use File::Basename qw(dirname); use Getopt::Long qw(GetOptions); use Pod::Usage qw(pod2usage); -use Scalar::Util qw(blessed); use Storable; use lib dirname($0) . '/lib'; @@ -29,6 +29,7 @@ use BackRestDoc::Latex::DocLatex; use BackRestDoc::Markdown::DocMarkdown; use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Log; use pgBackRest::Common::String; use pgBackRest::Config::Config; @@ -176,20 +177,24 @@ eval executeTest("ssh ${strHost} find ${strPath} -type d -exec chmod 550 {} +"); executeTest("ssh ${strHost} find ${strPath} -type f -exec chmod 440 {} +"); } -}; + + # Exit with success + exit 0; +} #################################################################################################################################### # Check for errors #################################################################################################################################### -if ($@) +or do { - my $oMessage = $@; + # If a backrest exception then return the code + exit $EVAL_ERROR->code() if (isException($EVAL_ERROR)); - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) - { - exit $oMessage->code(); - } + # Else output the unhandled error + print $EVAL_ERROR; + exit ERROR_UNHANDLED; +}; - confess $oMessage; -} +# It shouldn't be possible to get here +&log(ASSERT, 'execution reached invalid location in ' . __FILE__ . ', line ' . __LINE__); +exit ERROR_ASSERT; diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 93cfdd88d..f34f5fcd1 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -158,7 +158,7 @@ -

Improve ASSERT error handling.

+

Improve ASSERT error handling, safely check eval blocks, and convert $@ to $EVAL_ERROR.

diff --git a/lib/pgBackRest/Archive.pm b/lib/pgBackRest/Archive.pm index 87770766c..9ae3dbfdb 100644 --- a/lib/pgBackRest/Archive.pm +++ b/lib/pgBackRest/Archive.pm @@ -6,6 +6,7 @@ package pgBackRest::Archive; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Exporter qw(import); our @EXPORT = qw(); @@ -518,24 +519,21 @@ sub getBackupInfoCheck eval { $oBackupInfo = new pgBackRest::BackupInfo($oFile->pathGet(PATH_BACKUP_CLUSTER)); + return true; + } + # If there is an error but it is not that the file is missing then confess + or do + { + if (!isException($EVAL_ERROR) || $EVAL_ERROR->code() != ERROR_PATH_MISSING) + { + confess $EVAL_ERROR; + } }; - if ($@) + # Check that the stanza backup info is compatible with the current version of the database + # If not, an error will be thrown + if (defined($oBackupInfo)) { - my $oMessage = $@; - - # If this is a backrest error but it is not that the file is missing then confess - # else nothing to do so exit - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception') - && ($oMessage->code() != ERROR_PATH_MISSING)) - { - confess $oMessage; - } - } - else - { - # Check that the stanza backup info is compatible with the current version of the database - # If not, an error will be thrown $iDbHistoryId = $oBackupInfo->check($strDbVersion, $iControlVersion, $iCatalogVersion, $ullDbSysId); } } @@ -952,6 +950,8 @@ sub xfer } else { + my $oException = undef; + eval { # Start backup test point @@ -1069,9 +1069,13 @@ sub xfer # Remove the copied segment from the total size $lFileSize -= $oManifestHash{name}{$strFile}{size}; } - }; - my $oException = $@; + return true; + } + or do + { + $oException = $EVAL_ERROR; + }; # Create a stop file if the archive store exceeds the max even after xfer if (optionTest(OPTION_ARCHIVE_MAX_MB)) @@ -1164,23 +1168,21 @@ sub check # Clear any previous errors if we've found the archive.info $iResult = 0; - }; - if ($@) - { - my $oMessage = $@; - - # If this is a backrest error then capture the last code and message else confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) - { - $iResult = $oMessage->code(); - $strResultMessage = $oMessage->message(); - } - else - { - confess $oMessage; - } + return true; } + or do + { + # Confess unhandled errors + if (!isException($EVAL_ERROR)) + { + confess $EVAL_ERROR; + } + + # If this is a backrest error then capture the last code and message + $iResult = $EVAL_ERROR->code(); + $strResultMessage = $EVAL_ERROR->message(); + }; } while (!defined($strArchiveId) && waitMore($oWait)); # If able to get the archive id then check the archived WAL file with the time remaining @@ -1189,24 +1191,21 @@ sub check eval { $strArchiveFile = $self->walFileName($oFile, $strArchiveId, $strWalSegment, false, $iArchiveTimeout); - }; - - # If this is a backrest error then capture the code and message else confess - if ($@) - { - my $oMessage = $@; - - # If a backrest exception then return the code else confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) - { - $iResult = $oMessage->code(); - $strResultMessage = $oMessage->message(); - } - else - { - confess $oMessage; - } + return true; } + # If this is a backrest error then capture the code and message else confess + or do + { + # Confess unhandled errors + if (!isException($EVAL_ERROR)) + { + confess $EVAL_ERROR; + } + + # If this is a backrest error then capture the last code and message + $iResult = $EVAL_ERROR->code(); + $strResultMessage = $EVAL_ERROR->message(); + }; } # Reset the console logging diff --git a/lib/pgBackRest/Backup.pm b/lib/pgBackRest/Backup.pm index f2799d404..0321004cd 100644 --- a/lib/pgBackRest/Backup.pm +++ b/lib/pgBackRest/Backup.pm @@ -6,6 +6,7 @@ package pgBackRest::Backup; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Exporter qw(import); use Fcntl 'SEEK_CUR'; @@ -732,7 +733,7 @@ sub process # Check if an aborted backup exists for this stanza if (-e $strBackupTmpPath) { - my $bUsable = false; + my $bUsable; my $strReason = "resume is disabled"; my $oAbortedManifest; @@ -811,7 +812,13 @@ sub process { $bUsable = true; } - }; + + return true; + } + or do + { + $bUsable = false; + } } # If the aborted backup is usable then clean it diff --git a/lib/pgBackRest/Common/Exception.pm b/lib/pgBackRest/Common/Exception.pm index 86ac5ccef..e2bed5822 100644 --- a/lib/pgBackRest/Common/Exception.pm +++ b/lib/pgBackRest/Common/Exception.pm @@ -7,6 +7,8 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess longmess); +use Scalar::Util qw(blessed); + use Exporter qw(import); our @EXPORT = qw(); @@ -98,8 +100,6 @@ use constant ERROR_TERM => ERROR_MIN push @EXPORT, qw(ERROR_TERM); use constant ERROR_FILE_WRITE => ERROR_MINIMUM + 39; push @EXPORT, qw(ERROR_FILE_WRITE); -use constant ERROR_UNHANDLED_EXCEPTION => ERROR_MINIMUM + 40; - push @EXPORT, qw(ERROR_UNHANDLED_EXCEPTION); use constant ERROR_PROTOCOL_TIMEOUT => ERROR_MINIMUM + 41; push @EXPORT, qw(ERROR_PROTOCOL_TIMEOUT); use constant ERROR_FEATURE_NOT_SUPPORTED => ERROR_MINIMUM + 42; @@ -143,8 +143,10 @@ use constant ERROR_PROTOCOL_OUTPUT_REQUIRED => ERROR_MIN use constant ERROR_LINK_OPEN => ERROR_MINIMUM + 61; push @EXPORT, qw(ERROR_LINK_OPEN); -use constant ERROR_INVALID_VALUE => ERROR_MAXIMUM - 1; +use constant ERROR_INVALID_VALUE => ERROR_MAXIMUM - 2; push @EXPORT, qw(ERROR_INVALID_VALUE); +use constant ERROR_UNHANDLED => ERROR_MAXIMUM - 1; + push @EXPORT, qw(ERROR_UNHANDLED); use constant ERROR_UNKNOWN => ERROR_MAXIMUM; push @EXPORT, qw(ERROR_UNKNOWN); @@ -158,10 +160,10 @@ sub new my $strMessage = shift; # ErrorMessage my $strTrace = shift; # Stack trace - # if ($iCode < ERROR_MINIMUM || $iCode > ERROR_MAXIMUM) - # { - # $iCode = ERROR_INVALID_VALUE; - # } + if ($iCode < ERROR_MINIMUM || $iCode > ERROR_MAXIMUM) + { + $iCode = ERROR_INVALID_VALUE; + } # Create the class hash my $self = {}; @@ -205,4 +207,18 @@ sub trace return $self->{strTrace}; } +#################################################################################################################################### +# isException +# +# Is this a structured exception? +#################################################################################################################################### +sub isException +{ + my $oException = shift; + + return defined($oException) && blessed($oException) && $oException->isa('pgBackRest::Common::Exception') ? 1 : 0; +} + +push @EXPORT, qw(isException); + 1; diff --git a/lib/pgBackRest/Common/Exit.pm b/lib/pgBackRest/Common/Exit.pm index 63b497971..ee2985d66 100644 --- a/lib/pgBackRest/Common/Exit.pm +++ b/lib/pgBackRest/Common/Exit.pm @@ -6,11 +6,11 @@ package pgBackRest::Common::Exit; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Exporter qw(import); our @EXPORT = qw(); use File::Basename qw(dirname); -use Scalar::Util qw(blessed); use lib dirname($0) . '/../lib'; use pgBackRest::Common::Exception; @@ -29,9 +29,9 @@ use constant SIGNAL_TERM => 'TERM'; #################################################################################################################################### # Hook important signals into exitSafe function #################################################################################################################################### -$SIG{&SIGNAL_HUP} = sub {exitSafe(-1, SIGNAL_HUP)}; -$SIG{&SIGNAL_INT} = sub {exitSafe(-1, SIGNAL_INT)}; -$SIG{&SIGNAL_TERM} = sub {exitSafe(-1, SIGNAL_TERM)}; +$SIG{&SIGNAL_HUP} = sub {exitSafe(ERROR_TERM, undef, SIGNAL_HUP)}; +$SIG{&SIGNAL_INT} = sub {exitSafe(ERROR_TERM, undef, SIGNAL_INT)}; +$SIG{&SIGNAL_TERM} = sub {exitSafe(ERROR_TERM, undef, SIGNAL_TERM)}; #################################################################################################################################### # exitSafe @@ -45,13 +45,15 @@ sub exitSafe ( $strOperation, $iExitCode, - $strSignal + $oException, + $strSignal, ) = logDebugParam ( __PACKAGE__ . '::exitSafe', \@_, - {name => 'iExitCode'}, - {name => 'strSignal', required => false} + {name => 'iExitCode', required => false}, + {name => 'oException', required => false}, + {name => 'strSignal', required => false}, ); commandStop(); @@ -63,26 +65,41 @@ sub exitSafe eval { lockRelease(false); - }; + } + or do {}; - # Exit with code when defined - if ($iExitCode != -1) + # If exit code is not defined then try to get it from the exception + if (!defined($iExitCode)) { - exit $iExitCode; + # If a backrest exception + if (isException($oException)) + { + $iExitCode = $oException->code(); + } + else + { + $iExitCode = ERROR_UNHANDLED; + + &log( + ERROR, + 'process terminated due to an unhandled exception' . + (defined($oException) ? ":\n${oException}" : ': [exception not defined]'), + $iExitCode); + } + } + elsif ($iExitCode == ERROR_TERM) + { + &log(ERROR, "process terminated on a ${strSignal} signal", ERROR_TERM); } - # Log error based on where the signal came from - &log( - ERROR, - 'process terminated ' . - (defined($strSignal) ? "on a ${strSignal} signal" : 'due to an unhandled exception'), - defined($strSignal) ? ERROR_TERM : ERROR_UNHANDLED_EXCEPTION); + # Log return values if any + logDebugReturn + ( + $strOperation, + {name => 'iExitCode', value => $iExitCode} + ); - # If terminated by a signal exit with ERROR_TERM - exit ERROR_TERM if defined($strSignal); - - # Return from function and log return values if any - return logDebugReturn($strOperation); + exit $iExitCode; } push @EXPORT, qw(exitSafe); diff --git a/lib/pgBackRest/Config/Config.pm b/lib/pgBackRest/Config/Config.pm index 192102ebe..c25c6ba6a 100644 --- a/lib/pgBackRest/Config/Config.pm +++ b/lib/pgBackRest/Config/Config.pm @@ -2252,13 +2252,18 @@ sub optionValidate { # Test that the string is a valid float or integer by adding 1 to it. It's pretty hokey but it works and it # beats requiring Scalar::Util::Numeric to do it properly. + my $bError = false; + eval { my $strTest = $strValue + 1; + return true; + } + or do + { + $bError = true; }; - my $bError = $@ ? true : false; - # Check that integers are really integers if (!$bError && $oOptionRule{$strOption}{&OPTION_RULE_TYPE} eq OPTION_TYPE_INTEGER && (int($strValue) . 'S') ne ($strValue . 'S')) diff --git a/lib/pgBackRest/File.pm b/lib/pgBackRest/File.pm index fdf1dd0b3..f8c97d741 100644 --- a/lib/pgBackRest/File.pm +++ b/lib/pgBackRest/File.pm @@ -6,6 +6,7 @@ package pgBackRest::File; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Exporter qw(import); our @EXPORT = qw(); @@ -15,7 +16,6 @@ use File::Copy qw(cp); use File::Path qw(make_path remove_tree); use File::stat; use IO::Handle; -use Scalar::Util qw(blessed); use lib dirname($0) . '/../lib'; use pgBackRest::Common::Exception; @@ -1568,17 +1568,17 @@ sub copy { $bResult = false; } - }; + return true; + } # If there is an error then evaluate - if ($@) + or do { - my $oMessage = $@; + my $oException = $EVAL_ERROR; # Ignore error if source file was missing and missing file exception was returned and bIgnoreMissingSource is set - if ($bIgnoreMissingSource && $strRemote eq 'in' && - blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception') && - $oMessage->code() == ERROR_FILE_MISSING) + if ($bIgnoreMissingSource && $strRemote eq 'in' && isException($oException) && + $oException->code() == ERROR_FILE_MISSING) { close($hDestinationFile) or confess &log(ERROR, "cannot close file ${strDestinationTmpOp}"); @@ -1587,8 +1587,8 @@ sub copy return false, undef, undef; } - confess $oMessage; - } + confess $oException; + }; } } # Else this is a local operation diff --git a/lib/pgBackRest/Protocol/CommonMaster.pm b/lib/pgBackRest/Protocol/CommonMaster.pm index dd78c98cc..a3f119df1 100644 --- a/lib/pgBackRest/Protocol/CommonMaster.pm +++ b/lib/pgBackRest/Protocol/CommonMaster.pm @@ -7,10 +7,10 @@ use parent 'pgBackRest::Protocol::Common'; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use File::Basename qw(dirname); use Time::HiRes qw(gettimeofday); -use Scalar::Util qw(blessed); use lib dirname($0) . '/../lib'; use pgBackRest::Common::Exception; @@ -111,32 +111,32 @@ sub close eval { $self->cmdWrite('exit'); - }; - - if ($@) + return true; + } + or do { - my $oMessage = $@; + my $oException = $EVAL_ERROR; my $strError = 'unable to shutdown protocol'; my $strHint = 'HINT: the process completed successfully but protocol-timeout may need to be increased.'; - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) + if (isException($oException)) { - $iExitStatus = $oMessage->code(); + $iExitStatus = $oException->code(); } else { - if (!defined($oMessage)) + if (!defined($oException)) { - $oMessage = 'unknown error'; + $oException = 'unknown error'; } $iExitStatus = ERROR_UNKNOWN; } &log(WARN, - $strError . ($iExitStatus == ERROR_UNKNOWN ? '' : ' [' . $oMessage->code() . ']') . ': ' . - ($iExitStatus == ERROR_UNKNOWN ? $oMessage : $oMessage->message()) . "\n${strHint}"); - } + $strError . ($iExitStatus == ERROR_UNKNOWN ? '' : ' [' . $oException->code() . ']') . ': ' . + ($iExitStatus == ERROR_UNKNOWN ? $oException : $oException->message()) . "\n${strHint}"); + }; undef($self->{io}); $bClosed = true; diff --git a/lib/pgBackRest/Protocol/CommonMinion.pm b/lib/pgBackRest/Protocol/CommonMinion.pm index fb7a24b61..63e38162a 100644 --- a/lib/pgBackRest/Protocol/CommonMinion.pm +++ b/lib/pgBackRest/Protocol/CommonMinion.pm @@ -7,11 +7,8 @@ use parent 'pgBackRest::Protocol::Common'; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; -use File::Basename qw(dirname); -use Scalar::Util qw(blessed); - -use lib dirname($0) . '/../lib'; use pgBackRest::Common::Exception; use pgBackRest::Common::Ini; use pgBackRest::Common::Log; @@ -120,30 +117,21 @@ sub binaryXferAbort sub errorWrite { my $self = shift; - my $oMessage = shift; + my $oException = shift; my $iCode; my $strMessage; # If the message is blessed it may be a standard exception - if (blessed($oMessage)) + if (isException($oException)) { - # Check if it is a standard exception - if ($oMessage->isa('pgBackRest::Common::Exception')) - { - $iCode = $oMessage->code(); - $strMessage = $oMessage->message(); - } - # Else terminate the process with an error - else - { - confess &log(ERROR, 'unknown error object', ERROR_UNKNOWN); - } + $iCode = $oException->code(); + $strMessage = $oException->message(); } # Else terminate the process with an error else { - confess &log(ERROR, 'unknown error: ' . $oMessage, ERROR_UNKNOWN); + confess &log(ERROR, 'unknown error: ' . $oException, ERROR_UNKNOWN); } # Write the message text into protocol @@ -274,13 +262,14 @@ sub process confess "invalid command: ${strCommand}"; } } - }; - # Process errors - if ($@) - { - $self->errorWrite($@); + return true; } + # Process errors + or do + { + $self->errorWrite($EVAL_ERROR); + }; } return 0; diff --git a/lib/pgBackRest/Protocol/IO.pm b/lib/pgBackRest/Protocol/IO.pm index 87a21b41b..8bc49217f 100644 --- a/lib/pgBackRest/Protocol/IO.pm +++ b/lib/pgBackRest/Protocol/IO.pm @@ -6,6 +6,7 @@ package pgBackRest::Protocol::IO; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Exporter qw(import); our @EXPORT = qw(); @@ -552,16 +553,20 @@ sub waitPid $strError .= $strLine; } - }; - if ($@ || !defined($strError)) - { - my $strMessage = $@; - - $strError = - 'no output from terminated process' . - (defined($strMessage) && ${strMessage} ne '' ? ": ${strMessage}" : ''); + return true; } + or do + { + if (!defined($strError)) + { + my $strException = $EVAL_ERROR; + + $strError = + 'no output from terminated process' . + (defined($strException) && ${strException} ne '' ? ": ${strException}" : ''); + } + }; } $self->{pId} = undef; diff --git a/test/expect/backup-archive-get-001.log b/test/expect/backup-archive-get-001.log index ead74c3c9..5b8ec50b4 100644 --- a/test/expect/backup-archive-get-001.log +++ b/test/expect/backup-archive-get-001.log @@ -20,11 +20,12 @@ run 001 - rmt 0, cmp 0, exists 0 ERROR: [130]: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- @@ -45,11 +46,12 @@ stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -57,21 +59,23 @@ stop all stanzas (db-master host) INFO: get WAL segment 000000090000000900000009 DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009 ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -98,8 +102,9 @@ start all stanzas (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] INFO: unable to find 000000090000000900000009 in the archive DEBUG: Archive->get=>: iResult = 1 - DEBUG: Common::Exit::exitSafe(): iExitCode = 1, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 1, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 1 diff --git a/test/expect/backup-archive-get-002.log b/test/expect/backup-archive-get-002.log index 2b70a6001..491bc70d3 100644 --- a/test/expect/backup-archive-get-002.log +++ b/test/expect/backup-archive-get-002.log @@ -20,11 +20,12 @@ run 002 - rmt 0, cmp 0, exists 1 ERROR: [130]: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- @@ -66,11 +67,12 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -97,11 +99,12 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -128,8 +131,9 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-get-003.log b/test/expect/backup-archive-get-003.log index c91189d82..ac47e908f 100644 --- a/test/expect/backup-archive-get-003.log +++ b/test/expect/backup-archive-get-003.log @@ -20,11 +20,12 @@ run 003 - rmt 0, cmp 1, exists 0 ERROR: [130]: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- @@ -45,11 +46,12 @@ stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -57,21 +59,23 @@ stop all stanzas (db-master host) INFO: get WAL segment 000000090000000900000009 DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009 ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -98,8 +102,9 @@ start all stanzas (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] INFO: unable to find 000000090000000900000009 in the archive DEBUG: Archive->get=>: iResult = 1 - DEBUG: Common::Exit::exitSafe(): iExitCode = 1, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 1, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 1 diff --git a/test/expect/backup-archive-get-004.log b/test/expect/backup-archive-get-004.log index baa0e7556..b3dbf1da4 100644 --- a/test/expect/backup-archive-get-004.log +++ b/test/expect/backup-archive-get-004.log @@ -20,11 +20,12 @@ run 004 - rmt 0, cmp 1, exists 1 ERROR: [130]: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- @@ -66,11 +67,12 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -97,11 +99,12 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -128,8 +131,9 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-get-005.log b/test/expect/backup-archive-get-005.log index 599745057..097ef842a 100644 --- a/test/expect/backup-archive-get-005.log +++ b/test/expect/backup-archive-get-005.log @@ -21,13 +21,14 @@ run 005 - rmt 1, cmp 0, exists 0 ERROR: [130]: raised on backup host: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- @@ -48,11 +49,12 @@ stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -60,21 +62,23 @@ stop all stanzas (db-master host) INFO: get WAL segment 000000090000000900000009 DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009 ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -99,10 +103,11 @@ start all stanzas (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] INFO: unable to find 000000090000000900000009 in the archive DEBUG: Archive->get=>: iResult = 1 - DEBUG: Common::Exit::exitSafe(): iExitCode = 1, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 1, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 1 diff --git a/test/expect/backup-archive-get-006.log b/test/expect/backup-archive-get-006.log index 9904d61cc..85a02dfc4 100644 --- a/test/expect/backup-archive-get-006.log +++ b/test/expect/backup-archive-get-006.log @@ -21,13 +21,14 @@ run 006 - rmt 1, cmp 0, exists 1 ERROR: [130]: raised on backup host: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- @@ -67,13 +68,14 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -98,13 +100,14 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -129,10 +132,11 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031 DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-get-007.log b/test/expect/backup-archive-get-007.log index 1434ce9eb..7d24267c0 100644 --- a/test/expect/backup-archive-get-007.log +++ b/test/expect/backup-archive-get-007.log @@ -21,13 +21,14 @@ run 007 - rmt 1, cmp 1, exists 0 ERROR: [130]: raised on backup host: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- @@ -48,11 +49,12 @@ stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -60,21 +62,23 @@ stop all stanzas (db-master host) INFO: get WAL segment 000000090000000900000009 DEBUG: Archive->get(): strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG, strSourceArchive = 000000090000000900000009 ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000090000000900000009 [TEST_PATH]/db-master/db/base/pg_xlog/RECOVERYXLOG ------------------------------------------------------------------------------------------------------------------------------------ @@ -99,10 +103,11 @@ start all stanzas (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] INFO: unable to find 000000090000000900000009 in the archive DEBUG: Archive->get=>: iResult = 1 - DEBUG: Common::Exit::exitSafe(): iExitCode = 1, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 1, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 1 diff --git a/test/expect/backup-archive-get-008.log b/test/expect/backup-archive-get-008.log index dd2324c8d..69ef6779d 100644 --- a/test/expect/backup-archive-get-008.log +++ b/test/expect/backup-archive-get-008.log @@ -21,13 +21,14 @@ run 008 - rmt 1, cmp 1, exists 1 ERROR: [130]: raised on backup host: archive.info does not exist but is required to get WAL segments HINT: is archive_command configured in postgresql.conf? HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. - DEBUG: Common::Exit::exitSafe(): iExitCode = 130, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 130 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- @@ -67,13 +68,14 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000002 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -98,13 +100,14 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db archive-get 000000010000000100000003 [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -129,10 +132,11 @@ db-version="9.3" DEBUG: Archive->walFileName=>: strWalFileName = 000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz DEBUG: File->copy(): bAppendChecksum = , bDestinationCompress = false, bDestinationPathCreate = , bIgnoreMissingSource = , bSourceCompressed = true, lModificationTime = [undef], strDestinationFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strDestinationPathType = db:absolute, strGroup = [undef], strMode = <0640>, strSourceFile = 9.3-1/000000010000000100000003-1c7e00fd09b9dd11fc2966590b3e3274645dd031.gz, strSourcePathType = backup:archive, strUser = [undef] DEBUG: Archive->get=>: iResult = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-get stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-push-001.log b/test/expect/backup-archive-push-001.log index 3705b82db..438bcb565 100644 --- a/test/expect/backup-archive-push-001.log +++ b/test/expect/backup-archive-push-001.log @@ -23,11 +23,12 @@ run 001 - rmt 0, cmp 0, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -45,11 +46,12 @@ run 001 - rmt 0, cmp 0, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -67,21 +69,23 @@ run 001 - rmt 0, cmp 0, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -92,21 +96,23 @@ stop db stanza (db-master host) DEBUG: Protocol::Protocol::protocolGet: create local protocol DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/db-master/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: stop file exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -134,11 +140,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -164,11 +171,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -192,11 +200,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -224,11 +233,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000001.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -254,11 +264,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -282,11 +293,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000002, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -310,11 +322,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000003, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -338,11 +351,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000004, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -366,11 +380,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -388,11 +403,12 @@ start db stanza (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -410,11 +426,12 @@ start db stanza (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -442,11 +459,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -472,11 +490,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -500,11 +519,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -532,11 +552,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000005.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -562,11 +583,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -590,11 +612,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000006, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -618,11 +641,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000007, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -646,11 +670,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000008, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -674,11 +699,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -696,11 +722,12 @@ start db stanza (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -718,11 +745,12 @@ start db stanza (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -750,11 +778,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -780,11 +809,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -808,11 +838,12 @@ start db stanza (db-master host) DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -840,11 +871,12 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000009.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -870,11 +902,12 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-002.log b/test/expect/backup-archive-push-002.log index f69c483bf..e8fb7d597 100644 --- a/test/expect/backup-archive-push-002.log +++ b/test/expect/backup-archive-push-002.log @@ -47,11 +47,12 @@ run 002 - rmt 0, cmp 0, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,11 +83,12 @@ run 002 - rmt 0, cmp 0, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -117,22 +119,24 @@ run 002 - rmt 0, cmp 0, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --force stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --force --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo INFO: sent term signal to process [PROCESS-ID] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push --test --test-delay=5 --test-point=archive-push-async-start=y [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -153,12 +157,13 @@ stop all stanzas (db-master host) DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/db-master/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db DEBUG: File->manifest(): oManifestHashRef = [hash], strPath = [TEST_PATH]/db-master/repo/archive/db/out, strPathType = db:absolute DEBUG: File->manifestRecurse(): iDepth = 0, oManifestHashRef = [hash], strPathFileOp = [undef], strPathOp = [TEST_PATH]/db-master/repo/archive/db/out, strPathType = db:absolute - DEBUG: Common::Exit::exitSafe(): iExitCode = -1, strSignal = TERM + DEBUG: Common::Exit::exitSafe(): iExitCode = 138, oException = [undef], strSignal = TERM INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false ERROR: [138]: process terminated on a TERM signal + DEBUG: Common::Exit::exitSafe=>: iExitCode = 138 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -169,21 +174,23 @@ stop all stanzas (db-master host) DEBUG: Protocol::Protocol::protocolGet: create local protocol DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/db-master/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -235,11 +242,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -278,11 +286,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -330,11 +339,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -386,11 +396,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -429,11 +440,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000001.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -481,11 +493,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -533,11 +546,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -585,11 +599,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -637,11 +652,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -672,11 +688,12 @@ start all stanzas (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -707,11 +724,12 @@ start all stanzas (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -763,11 +781,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -806,11 +825,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -858,11 +878,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -914,11 +935,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -957,11 +979,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000005.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1009,11 +1032,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1061,11 +1085,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1113,11 +1138,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1165,11 +1191,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1200,11 +1227,12 @@ start all stanzas (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1235,11 +1263,12 @@ start all stanzas (db-master host) DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1291,11 +1320,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1334,11 +1364,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1386,11 +1417,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1442,11 +1474,12 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1485,11 +1518,12 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000009.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-003.log b/test/expect/backup-archive-push-003.log index 1f79a3041..15c910816 100644 --- a/test/expect/backup-archive-push-003.log +++ b/test/expect/backup-archive-push-003.log @@ -23,11 +23,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -45,11 +46,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -67,11 +69,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -99,11 +102,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -129,11 +133,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -157,11 +162,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -189,11 +195,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000001.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -219,11 +226,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -247,11 +255,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000002.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -275,11 +284,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000003.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -303,11 +313,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000004.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -331,11 +342,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -353,11 +365,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -375,11 +388,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -407,11 +421,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -437,11 +452,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -465,11 +481,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -497,11 +514,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000005.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -527,11 +545,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -555,11 +574,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000006.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -583,11 +603,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000007.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -611,11 +632,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000008.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -639,11 +661,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -661,11 +684,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -683,11 +707,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -715,11 +740,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -745,11 +771,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -773,11 +800,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: Archive->walFileName=>: strWalFileName = [undef] DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -805,11 +833,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000009.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -835,11 +864,12 @@ run 003 - rmt 0, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-004.log b/test/expect/backup-archive-push-004.log index 17d94ad5a..7de322a2b 100644 --- a/test/expect/backup-archive-push-004.log +++ b/test/expect/backup-archive-push-004.log @@ -47,11 +47,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,11 +83,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -117,11 +119,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -173,11 +176,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -216,11 +220,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -268,11 +273,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -324,11 +330,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -367,11 +374,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000001.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -419,11 +427,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -471,11 +480,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -523,11 +533,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -575,11 +586,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -610,11 +622,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -645,11 +658,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -701,11 +715,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -744,11 +759,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -796,11 +812,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -852,11 +869,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -895,11 +913,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000005.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -947,11 +966,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -999,11 +1019,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1051,11 +1072,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1103,11 +1125,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1138,11 +1161,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1173,11 +1197,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1229,11 +1254,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1272,11 +1298,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1324,11 +1351,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1380,11 +1408,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1423,11 +1452,12 @@ run 004 - rmt 0, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/repo/archive/db/out/000000010000000100000009.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/db-master/repo/archive/db/archive.info ----------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-005.log b/test/expect/backup-archive-push-005.log index 7a987064a..5ffcd5a89 100644 --- a/test/expect/backup-archive-push-005.log +++ b/test/expect/backup-archive-push-005.log @@ -16,13 +16,14 @@ run 005 - rmt 1, cmp 0, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -39,13 +40,14 @@ run 005 - rmt 1, cmp 0, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -62,23 +64,25 @@ run 005 - rmt 1, cmp 0, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -91,23 +95,25 @@ stop db stanza (db-master host) DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@backup '[BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote', strId = backup, strName = remote, strRemoteType = backup DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: stop file exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -128,13 +134,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -153,13 +160,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -176,13 +184,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -203,13 +212,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000001.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -228,13 +238,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -251,13 +262,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strWalSegment = 000000010000000100000002, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000002, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -274,13 +286,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strWalSegment = 000000010000000100000003, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000003, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -297,13 +310,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strWalSegment = 000000010000000100000004, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000004, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -320,13 +334,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -343,13 +358,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -366,13 +382,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -393,13 +410,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -418,13 +436,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -441,13 +460,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -468,13 +488,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000005.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -493,13 +514,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -516,13 +538,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strWalSegment = 000000010000000100000006, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000006, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -539,13 +562,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strWalSegment = 000000010000000100000007, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000007, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -562,13 +586,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strWalSegment = 000000010000000100000008, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000008, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -585,13 +610,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -608,13 +634,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -631,13 +658,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -658,13 +686,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -683,13 +712,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -706,13 +736,14 @@ start db stanza (db-master host) DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.partial, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -733,13 +764,14 @@ start db stanza (db-master host) WARN: WAL segment 000000010000000100000009.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -758,13 +790,14 @@ start db stanza (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-006.log b/test/expect/backup-archive-push-006.log index 2237b34ed..3924dd412 100644 --- a/test/expect/backup-archive-push-006.log +++ b/test/expect/backup-archive-push-006.log @@ -43,13 +43,14 @@ run 006 - rmt 1, cmp 0, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,13 +83,14 @@ run 006 - rmt 1, cmp 0, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -121,24 +123,26 @@ run 006 - rmt 1, cmp 0, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --force stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --force --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo INFO: sent term signal to process [PROCESS-ID] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push --test --test-delay=5 --test-point=archive-push-async-start=y [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -159,12 +163,13 @@ stop all stanzas (db-master host) DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db DEBUG: File->manifest(): oManifestHashRef = [hash], strPath = [TEST_PATH]/db-master/spool/archive/db/out, strPathType = db:absolute DEBUG: File->manifestRecurse(): iDepth = 0, oManifestHashRef = [hash], strPathFileOp = [undef], strPathOp = [TEST_PATH]/db-master/spool/archive/db/out, strPathType = db:absolute - DEBUG: Common::Exit::exitSafe(): iExitCode = -1, strSignal = TERM + DEBUG: Common::Exit::exitSafe(): iExitCode = 138, oException = [undef], strSignal = TERM INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false ERROR: [138]: process terminated on a TERM signal + DEBUG: Common::Exit::exitSafe=>: iExitCode = 138 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -175,21 +180,23 @@ stop all stanzas (db-master host) DEBUG: Protocol::Protocol::protocolGet: create local protocol DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/db-master/spool, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -237,13 +244,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -278,13 +286,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -328,13 +337,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -382,13 +392,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -423,13 +434,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -473,13 +485,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -523,13 +536,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -573,13 +587,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -623,13 +638,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -662,13 +678,14 @@ start all stanzas (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -701,13 +718,14 @@ start all stanzas (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -755,13 +773,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -796,13 +815,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -846,13 +866,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -900,13 +921,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -941,13 +963,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -991,13 +1014,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1041,13 +1065,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1091,13 +1116,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1141,13 +1167,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1180,13 +1207,14 @@ start all stanzas (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1219,13 +1247,14 @@ start all stanzas (db-master host) DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1273,13 +1302,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1314,13 +1344,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1364,13 +1395,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1418,13 +1450,14 @@ start all stanzas (db-master host) DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1459,13 +1492,14 @@ start all stanzas (db-master host) DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-007.log b/test/expect/backup-archive-push-007.log index 48d5dc452..70f3d8797 100644 --- a/test/expect/backup-archive-push-007.log +++ b/test/expect/backup-archive-push-007.log @@ -16,13 +16,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -39,13 +40,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -62,13 +64,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -89,13 +92,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000001 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -114,13 +118,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -137,13 +142,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000001.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -164,13 +170,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000001.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -189,13 +196,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -212,13 +220,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strWalSegment = 000000010000000100000002, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000002.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -235,13 +244,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strWalSegment = 000000010000000100000003, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000003.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -258,13 +268,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strWalSegment = 000000010000000100000004, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000004.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -281,13 +292,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -304,13 +316,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -327,13 +340,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -354,13 +368,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000005 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -379,13 +394,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -402,13 +418,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000005.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -429,13 +446,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000005.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -454,13 +472,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -477,13 +496,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strWalSegment = 000000010000000100000006, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000006.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -500,13 +520,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strWalSegment = 000000010000000100000007, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000007.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -523,13 +544,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strWalSegment = 000000010000000100000008, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000008.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -546,13 +568,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -569,13 +592,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -592,13 +616,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -619,13 +644,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000009 already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -644,13 +670,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -667,13 +694,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: Archive->pushCheck(): bPartial = true, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = [undef] DEBUG: File->copy(): bAppendChecksum = true, bDestinationCompress = true, bDestinationPathCreate = true, bIgnoreMissingSource = , bSourceCompressed = false, lModificationTime = [undef], strDestinationFile = 9.3-1/000000010000000100000009.partial.gz, strDestinationPathType = backup:archive, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strSourcePathType = db:absolute, strUser = [undef] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -694,13 +722,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 WARN: WAL segment 000000010000000100000009.partial already exists in the archive with the same checksum HINT: this is valid in some recovery scenarios but may also indicate a problem DEBUG: Archive->pushCheck=>: strArchiveId = 9.3-1, strChecksum = 1c7e00fd09b9dd11fc2966590b3e3274645dd031 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -719,13 +748,14 @@ run 007 - rmt 1, cmp 1, arc_async 0 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- diff --git a/test/expect/backup-archive-push-008.log b/test/expect/backup-archive-push-008.log index a896001f4..40096d330 100644 --- a/test/expect/backup-archive-push-008.log +++ b/test/expect/backup-archive-push-008.log @@ -43,13 +43,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,13 +83,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -121,13 +123,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000001, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -175,13 +178,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001 ------------------------------------------------------------------------------------------------------------------------------------ @@ -216,13 +220,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -266,13 +271,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -320,13 +326,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000001.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -361,13 +368,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000001.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000001.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -411,13 +419,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -461,13 +470,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ @@ -511,13 +521,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -561,13 +572,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -600,13 +612,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -639,13 +652,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000005, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -693,13 +707,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -734,13 +749,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -784,13 +800,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -838,13 +855,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -879,13 +897,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000005.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000005.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -929,13 +948,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000007 ------------------------------------------------------------------------------------------------------------------------------------ @@ -979,13 +999,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000008 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1029,13 +1050,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1079,13 +1101,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1118,13 +1141,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1157,13 +1181,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000009, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment system-id 5947969990501855219 does not match archive system-id 5000900090001855000 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1211,13 +1236,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009 ------------------------------------------------------------------------------------------------------------------------------------ @@ -1252,13 +1278,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009 already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1302,13 +1329,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1356,13 +1384,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000009.partial ------------------------------------------------------------------------------------------------------------------------------------ @@ -1397,13 +1426,14 @@ run 008 - rmt 1, cmp 1, arc_async 1 DEBUG: File->hashSize(): bCompressed = , strFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000009.partial-4518a0fdf41d796760b384a358270d4682589820, strHashType = , strPathType = db:absolute DEBUG: File->hashSize=>: iSize = 16777216, strHash = 4518a0fdf41d796760b384a358270d4682589820 ERROR: [120]: WAL segment 000000010000000100000009.partial already exists in the archive - DEBUG: Common::Exit::exitSafe(): iExitCode = 120, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 120 + supplemental file: [TEST_PATH]/backup/repo/archive/db/archive.info -------------------------------------------------------------------- diff --git a/test/expect/backup-archive-stop-001.log b/test/expect/backup-archive-stop-001.log index b6eee1a23..b49a8e464 100644 --- a/test/expect/backup-archive-stop-001.log +++ b/test/expect/backup-archive-stop-001.log @@ -47,11 +47,12 @@ run 001 - rmt 0, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,11 +83,12 @@ run 001 - rmt 0, cmp 0, error version DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -118,21 +120,23 @@ run 001 - rmt 0, cmp 0, error version ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/repo/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --no-fork --repo-path=[TEST_PATH]/db-master/repo --spool-path=[TEST_PATH]/db-master/repo --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/repo/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -210,11 +214,12 @@ run 001 - rmt 0, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -262,8 +267,9 @@ run 001 - rmt 0, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-stop-002.log b/test/expect/backup-archive-stop-002.log index 39c64c7b7..9de3e507f 100644 --- a/test/expect/backup-archive-stop-002.log +++ b/test/expect/backup-archive-stop-002.log @@ -47,11 +47,12 @@ run 002 - rmt 0, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,11 +83,12 @@ run 002 - rmt 0, cmp 1, error version DEBUG: ArchiveInfo->check(): strDbVersion = 9.3, ullDbSysId = 5947969990501855219 ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -118,21 +120,23 @@ run 002 - rmt 0, cmp 1, error version ERROR: [119]: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/repo/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --no-fork --repo-path=[TEST_PATH]/db-master/repo --spool-path=[TEST_PATH]/db-master/repo --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/repo/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -210,11 +214,12 @@ run 002 - rmt 0, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -262,8 +267,9 @@ run 002 - rmt 0, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-stop-003.log b/test/expect/backup-archive-stop-003.log index 95db05912..f1fc52d74 100644 --- a/test/expect/backup-archive-stop-003.log +++ b/test/expect/backup-archive-stop-003.log @@ -43,13 +43,14 @@ run 003 - rmt 1, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,13 +83,14 @@ run 003 - rmt 1, cmp 0, error version DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000002, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -122,23 +124,25 @@ run 003 - rmt 1, cmp 0, error version ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --no-fork --repo-path=[TEST_PATH]/backup/repo --spool-path=[TEST_PATH]/db-master/spool --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -194,13 +198,14 @@ run 003 - rmt 1, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -244,10 +249,11 @@ run 003 - rmt 1, cmp 0, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-stop-004.log b/test/expect/backup-archive-stop-004.log index 1b0565cc6..92cdac703 100644 --- a/test/expect/backup-archive-stop-004.log +++ b/test/expect/backup-archive-stop-004.log @@ -43,13 +43,14 @@ run 004 - rmt 1, cmp 0, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db --backup-host=bogus archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -75,11 +76,12 @@ run 004 - rmt 1, cmp 0, error connect DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = [BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote, strHost = bogus, strRemoteType = backup, strUser = [USER-1] DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote', strId = bogus, strName = remote, strRemoteType = backup ERROR: [124]: remote process terminated on bogus host (exit status 255): [REMOTE-PROCESS-TERMINATED-MESSAGE] - DEBUG: Common::Exit::exitSafe(): iExitCode = 124, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 124 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db --backup-host=bogus archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -106,21 +108,23 @@ run 004 - rmt 1, cmp 0, error connect DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote', strId = bogus, strName = remote, strRemoteType = backup ERROR: [124]: remote process terminated on bogus host (exit status 255): [REMOTE-PROCESS-TERMINATED-MESSAGE] ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 124, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 124 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --no-fork --repo-path=[TEST_PATH]/backup/repo --spool-path=[TEST_PATH]/db-master/spool --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -176,13 +180,14 @@ run 004 - rmt 1, cmp 0, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -226,10 +231,11 @@ run 004 - rmt 1, cmp 0, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-stop-005.log b/test/expect/backup-archive-stop-005.log index 1cc755f85..06334a0ae 100644 --- a/test/expect/backup-archive-stop-005.log +++ b/test/expect/backup-archive-stop-005.log @@ -43,13 +43,14 @@ run 005 - rmt 1, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -82,13 +83,14 @@ run 005 - rmt 1, cmp 1, error version DEBUG: Archive->pushCheck(): bPartial = false, oFile = [object], strDbVersion = 9.3, strWalFile = [TEST_PATH]/db-master/spool/archive/db/out/000000010000000100000002-1c7e00fd09b9dd11fc2966590b3e3274645dd031, strWalSegment = 000000010000000100000002, ullDbSysId = 5947969990501855219 ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -122,23 +124,25 @@ run 005 - rmt 1, cmp 1, error version ERROR: [119]: raised on backup host: WAL segment version 9.3 does not match archive version 8.0 HINT: are you archiving to the correct stanza? ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 119, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 119 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --no-fork --repo-path=[TEST_PATH]/backup/repo --spool-path=[TEST_PATH]/db-master/spool --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -194,13 +198,14 @@ run 005 - rmt 1, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -244,10 +249,11 @@ run 005 - rmt 1, cmp 1, error version DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-archive-stop-006.log b/test/expect/backup-archive-stop-006.log index 355562c57..6a4f35b1c 100644 --- a/test/expect/backup-archive-stop-006.log +++ b/test/expect/backup-archive-stop-006.log @@ -43,13 +43,14 @@ run 006 - rmt 1, cmp 1, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db --backup-host=bogus archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000002 ------------------------------------------------------------------------------------------------------------------------------------ @@ -75,11 +76,12 @@ run 006 - rmt 1, cmp 1, error connect DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = [BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote, strHost = bogus, strRemoteType = backup, strUser = [USER-1] DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote', strId = bogus, strName = remote, strRemoteType = backup ERROR: [124]: remote process terminated on bogus host (exit status 255): [REMOTE-PROCESS-TERMINATED-MESSAGE] - DEBUG: Common::Exit::exitSafe(): iExitCode = 124, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 124 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db --backup-host=bogus archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000003 ------------------------------------------------------------------------------------------------------------------------------------ @@ -106,21 +108,23 @@ run 006 - rmt 1, cmp 1, error connect DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o LogLevel=error -o Compression=no -o PasswordAuthentication=no backrest@bogus '[BACKREST-BIN] --buffer-size=4194304 --command=archive-push --compress-level=6 --compress-level-network=3 --config=[TEST_PATH]/backup/pgbackrest.conf --protocol-timeout=1830 --repo-path=[TEST_PATH]/backup/repo --stanza=db --type=backup remote', strId = bogus, strName = remote, strRemoteType = backup ERROR: [124]: remote process terminated on bogus host (exit status 255): [REMOTE-PROCESS-TERMINATED-MESSAGE] ERROR: [199]: local archive queue has exceeded limit of 24MB - WAL segments will be discarded until the stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) is removed - DEBUG: Common::Exit::exitSafe(): iExitCode = 124, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 124 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000004 ------------------------------------------------------------------------------------------------------------------------------------ INFO: archive-push start: --archive-async --archive-max-mb=24 --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --no-fork --repo-path=[TEST_PATH]/backup/repo --spool-path=[TEST_PATH]/db-master/spool --stanza=db ERROR: [199]: discarding 000000010000000100000004 due to the archive store max size exceeded - remove the archive stop file ([TEST_PATH]/db-master/spool/stop/db-archive.stop) to resume archiving and be sure to take a new backup as soon as possible - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000005 ------------------------------------------------------------------------------------------------------------------------------------ @@ -176,13 +180,14 @@ run 006 - rmt 1, cmp 1, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --archive-max-mb=24 --no-fork --stanza=db archive-push [TEST_PATH]/db-master/db/base/pg_xlog/000000010000000100000006 ------------------------------------------------------------------------------------------------------------------------------------ @@ -226,10 +231,11 @@ run 006 - rmt 1, cmp 1, error connect DEBUG: Archive->xfer: no WAL segments to archive DEBUG: Archive->pushProcess: transfer found 0 WAL segments - exiting DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: archive-push stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 diff --git a/test/expect/backup-synthetic-001.log b/test/expect/backup-synthetic-001.log index 535b91144..15223f5be 100644 --- a/test/expect/backup-synthetic-001.log +++ b/test/expect/backup-synthetic-001.log @@ -187,11 +187,12 @@ full backup - create pg_stat link, pg_clog dir (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -318,11 +319,12 @@ stop all stanzas (db-master host) ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --force --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo INFO: sent term signal to process [PROCESS-ID] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - abort backup - local (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --type=full --stanza=db backup --test --test-delay=5 --test-point=backup-start=y @@ -383,12 +385,13 @@ full backup - abort backup - local (db-master host) DEBUG: Backup->process: create temp backup path [TEST_PATH]/db-master/repo/temp/db.tmp DEBUG: File->pathCreate(): bCreateParents = true, bIgnoreExists = false, strMode = <0750>, strPath = [undef], strPathType = backup:tmp DEBUG: Backup->processManifest(): bCompress = false, bHardLink = false, oBackupManifest = [object], oFileMaster = [object], strDbCopyPath = [TEST_PATH]/db-master/db/base, strDbMasterPath = [TEST_PATH]/db-master/db/base, strDbVersion = 9.4, strType = full - DEBUG: Common::Exit::exitSafe(): iExitCode = -1, strSignal = TERM + DEBUG: Common::Exit::exitSafe(): iExitCode = 138, oException = [undef], strSignal = TERM INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false ERROR: [138]: process terminated on a TERM signal + DEBUG: Common::Exit::exitSafe=>: iExitCode = 138 full backup - global stop (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --type=full --stanza=db backup @@ -396,32 +399,35 @@ full backup - global stop (db-master host) INFO: backup start: --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --no-online --repo-path=[TEST_PATH]/db-master/repo --stanza=db --start-fast --type=full DEBUG: Common::Lock::lockAcquire(): bFailOnNoLock = , bRemote = , iProcessIdx = [undef], strLockType = backup ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo --stanza=db WARN: stop file already exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - stanza stop (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --type=full --stanza=db backup @@ -429,42 +435,46 @@ full backup - stanza stop (db-master host) INFO: backup start: --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --no-online --repo-path=[TEST_PATH]/db-master/repo --stanza=db --start-fast --type=full DEBUG: Common::Lock::lockAcquire(): bFailOnNoLock = , bRemote = , iProcessIdx = [undef], strLockType = backup ERROR: [137]: stop file exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --repo-path=[TEST_PATH]/db-master/repo WARN: stop file does not exist - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - resume (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --force --type=full --stanza=db backup --test --test-delay=0.2 --test-point=backup-resume=y @@ -643,11 +653,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -994,11 +1005,12 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1409,11 +1421,12 @@ incr backup - add tablespace 1 (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1692,11 +1705,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-002.log b/test/expect/backup-synthetic-002.log index 218ee6613..e00aad0d6 100644 --- a/test/expect/backup-synthetic-002.log +++ b/test/expect/backup-synthetic-002.log @@ -172,11 +172,12 @@ full backup - create pg_stat link, pg_clog dir (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -447,11 +448,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -740,11 +742,12 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1031,11 +1034,12 @@ incr backup - add tablespace 1 (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1344,11 +1348,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-003.log b/test/expect/backup-synthetic-003.log index c6ded298f..3ac9c5439 100644 --- a/test/expect/backup-synthetic-003.log +++ b/test/expect/backup-synthetic-003.log @@ -172,11 +172,12 @@ full backup - create pg_stat link, pg_clog dir (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -445,11 +446,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -736,11 +738,12 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1004,11 +1007,12 @@ incr backup - add tablespace 1 (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1271,11 +1275,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-004.log b/test/expect/backup-synthetic-004.log index 36ad6cfdf..8360d03f3 100644 --- a/test/expect/backup-synthetic-004.log +++ b/test/expect/backup-synthetic-004.log @@ -172,11 +172,12 @@ full backup - create pg_stat link, pg_clog dir (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -446,11 +447,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -738,11 +740,12 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1029,11 +1032,12 @@ incr backup - add tablespace 1 (db-master host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1341,11 +1345,12 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-005.log b/test/expect/backup-synthetic-005.log index 9e165a1a8..05e5b37ae 100644 --- a/test/expect/backup-synthetic-005.log +++ b/test/expect/backup-synthetic-005.log @@ -163,13 +163,14 @@ full backup - create pg_stat link, pg_clog dir (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -350,23 +351,25 @@ full backup - protocol timeout (backup host) DEBUG: Protocol::Protocol::protocolGet(): iRemoteIdx = 1, oParam = [undef], strRemoteType = db DEBUG: Protocol::Protocol::protocolGet: found cached protocol ERROR: [141]: remote process terminated on db-master host: ERROR [141]: unable to read line after 1 seconds - DEBUG: Common::Exit::exitSafe(): iExitCode = 141, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 141 stop all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --force stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --force --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo INFO: sent term signal to process [PROCESS-ID] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - abort backup - local (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup --test --test-delay=5 --test-point=backup-start=y @@ -413,12 +416,13 @@ full backup - abort backup - local (backup host) DEBUG: Protocol::Protocol::protocolGet(): iRemoteIdx = 1, oParam = [undef], strRemoteType = db DEBUG: Protocol::Protocol::protocolGet: found cached protocol ERROR: [138]: remote process terminated on db-master host: ERROR [138]: process terminated on a TERM signal - DEBUG: Common::Exit::exitSafe(): iExitCode = 138, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 138 full backup - global stop (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup @@ -448,33 +452,36 @@ full backup - global stop (backup host) DEBUG: Db->info(): strDbPath = <[TEST_PATH]/db-master/db/base> DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: remote process terminated on db-master host: ERROR [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 stop db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db WARN: stop file already exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - stanza stop (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup @@ -504,54 +511,59 @@ full backup - stanza stop (backup host) DEBUG: Db->info(): strDbPath = <[TEST_PATH]/db-master/db/base> DEBUG: File->new(): oProtocol = [object], strBackupPath = [TEST_PATH]/backup/repo, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strStanza = db ERROR: [137]: remote process terminated on db-master host: ERROR [137]: stop file exists for stanza db - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start db stanza (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --stanza=db start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo --stanza=db - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 start all stanzas (db-master host) > [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --backup-cmd=[BACKREST-BIN] --backup-config=[TEST_PATH]/backup/pgbackrest.conf --backup-host=backup --backup-user=backrest --config=[TEST_PATH]/db-master/pgbackrest.conf --lock-path=[TEST_PATH]/db-master/spool/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/db-master/spool/log --repo-path=[TEST_PATH]/backup/repo WARN: stop file does not exist - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 stop all stanzas (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --force stop ------------------------------------------------------------------------------------------------------------------------------------ INFO: stop start: --config=[TEST_PATH]/backup/pgbackrest.conf --force --lock-path=[TEST_PATH]/backup/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/backup/repo/log --repo-path=[TEST_PATH]/backup/repo INFO: sent term signal to process [PROCESS-ID] - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: stop stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - abort backup - remote (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup --test --test-delay=5 --test-point=backup-start=y @@ -598,7 +610,7 @@ DETAIL: clean backup temp path: [TEST_PATH]/backup/repo/temp/db.tmp DEBUG: File->manifestRecurse(): iDepth = 0, oManifestHashRef = [hash], strPathFileOp = [undef], strPathOp = [TEST_PATH]/backup/repo/temp/db.tmp, strPathType = backup:tmp DEBUG: Backup->fileNotInManifest=>: stryFile = () DEBUG: Backup->processManifest(): bCompress = false, bHardLink = false, oBackupManifest = [object], oFileMaster = [object], strDbCopyPath = [TEST_PATH]/db-master/db/base, strDbMasterPath = [TEST_PATH]/db-master/db/base, strDbVersion = 9.4, strType = full - DEBUG: Common::Exit::exitSafe(): iExitCode = -1, strSignal = TERM + DEBUG: Common::Exit::exitSafe(): iExitCode = 138, oException = [undef], strSignal = TERM INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db @@ -606,6 +618,7 @@ DETAIL: clean backup temp path: [TEST_PATH]/backup/repo/temp/db.tmp DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false ERROR: [138]: process terminated on a TERM signal + DEBUG: Common::Exit::exitSafe=>: iExitCode = 138 full backup - global stop (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --type=full --stanza=db backup @@ -613,21 +626,23 @@ full backup - global stop (backup host) INFO: backup start: --no-compress --config=[TEST_PATH]/backup/pgbackrest.conf --db-cmd=[BACKREST-BIN] --db-config=[TEST_PATH]/db-master/pgbackrest.conf --db-host=db-master --db-path=[TEST_PATH]/db-master/db/base --db-user=vagrant --lock-path=[TEST_PATH]/backup/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/backup/repo/log --no-online --repo-path=[TEST_PATH]/backup/repo --stanza=db --start-fast --type=full DEBUG: Common::Lock::lockAcquire(): bFailOnNoLock = , bRemote = , iProcessIdx = [undef], strLockType = backup ERROR: [137]: stop file exists for all stanzas - DEBUG: Common::Exit::exitSafe(): iExitCode = 137, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = [undef], oException = [object], strSignal = [undef] INFO: backup stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 137 start all stanzas (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf start ------------------------------------------------------------------------------------------------------------------------------------ INFO: start start: --config=[TEST_PATH]/backup/pgbackrest.conf --lock-path=[TEST_PATH]/backup/repo/lock --log-level-console=debug --log-level-file=trace --log-path=[TEST_PATH]/backup/repo/log --repo-path=[TEST_PATH]/backup/repo - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: start stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 full backup - resume (backup host) > [CONTAINER-EXEC] backup [BACKREST-BIN] --config=[TEST_PATH]/backup/pgbackrest.conf --no-online --force --type=full --stanza=db backup --test --test-delay=0.2 --test-point=backup-resume=y @@ -775,13 +790,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1099,13 +1115,14 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1358,13 +1375,14 @@ incr backup - add tablespace 1 (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1635,13 +1653,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-006.log b/test/expect/backup-synthetic-006.log index d49ed9b25..ad0c74c4d 100644 --- a/test/expect/backup-synthetic-006.log +++ b/test/expect/backup-synthetic-006.log @@ -163,13 +163,14 @@ full backup - create pg_stat link, pg_clog dir (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -452,13 +453,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -770,13 +772,14 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1052,13 +1055,14 @@ incr backup - add tablespace 1 (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1374,13 +1378,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-007.log b/test/expect/backup-synthetic-007.log index 56af3e173..ce6e395ff 100644 --- a/test/expect/backup-synthetic-007.log +++ b/test/expect/backup-synthetic-007.log @@ -163,13 +163,14 @@ full backup - create pg_stat link, pg_clog dir (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -449,13 +450,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -764,13 +766,14 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1023,13 +1026,14 @@ incr backup - add tablespace 1 (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1298,13 +1302,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/expect/backup-synthetic-008.log b/test/expect/backup-synthetic-008.log index bf56896a5..ebd2f8916 100644 --- a/test/expect/backup-synthetic-008.log +++ b/test/expect/backup-synthetic-008.log @@ -163,13 +163,14 @@ full backup - create pg_stat link, pg_clog dir (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -450,13 +451,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/global/pg_control (8 DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -766,13 +768,14 @@ DETAIL: restore file [TEST_PATH]/db-master/db/base/PG_VERSION - exists and match DEBUG: File->remove(): bIgnoreMissing = false, bTemp = [undef], strPath = [TEST_PATH]/db-master/db/base/backup.manifest, strPathType = db:absolute DEBUG: File->remove=>: bRemoved = true DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: restore stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = backup DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/db/base/recovery.conf ---------------------------------------------------------------- @@ -1048,13 +1051,14 @@ incr backup - add tablespace 1 (backup host) DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- @@ -1368,13 +1372,14 @@ DETAIL: checksum resumed file [TEST_PATH]/db-master/db/base/pg_tblspc/1/[TS_PATH DEBUG: BackupInfo->current=>: bTest = true INFO: archive retention type not set - archive logs will not be expired DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = - DEBUG: Common::Exit::exitSafe(): iExitCode = 0, strSignal = [undef] + DEBUG: Common::Exit::exitSafe(): iExitCode = 0, oException = [undef], strSignal = [undef] INFO: expire stop DEBUG: Protocol::Protocol::protocolDestroy(): iRemoteIdx = [undef], strRemoteType = [undef] DEBUG: Protocol::Protocol::protocolDestroy: found cached protocol: iRemoteIdx = 1, strRemoteType = db DEBUG: Protocol::CommonMaster->close=>: iExitStatus = 0 DEBUG: Protocol::Protocol::protocolDestroy=>: iExitStatus = 0 DEBUG: Common::Lock::lockRelease(): bFailOnNoLock = false + DEBUG: Common::Exit::exitSafe=>: iExitCode = 0 + supplemental file: [TEST_PATH]/db-master/pgbackrest.conf ---------------------------------------------------------- diff --git a/test/lib/pgBackRestTest/Common/ContainerTest.pm b/test/lib/pgBackRestTest/Common/ContainerTest.pm index 5db3ed463..098d94df0 100755 --- a/test/lib/pgBackRestTest/Common/ContainerTest.pm +++ b/test/lib/pgBackRestTest/Common/ContainerTest.pm @@ -15,7 +15,6 @@ use Exporter qw(import); our @EXPORT = qw(); use File::Basename qw(dirname); use Getopt::Long qw(GetOptions); -use Scalar::Util qw(blessed); use pgBackRest::Common::Ini; use pgBackRest::Common::Log; diff --git a/test/lib/pgBackRestTest/Config/ConfigTest.pm b/test/lib/pgBackRestTest/Config/ConfigTest.pm index 1347a1730..3eea98ab7 100755 --- a/test/lib/pgBackRestTest/Config/ConfigTest.pm +++ b/test/lib/pgBackRestTest/Config/ConfigTest.pm @@ -9,10 +9,10 @@ package pgBackRestTest::Config::ConfigTest; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Cwd qw(abs_path); use Exporter qw(import); -use Scalar::Util qw(blessed); use pgBackRest::Common::Exception; use pgBackRest::Common::Ini; @@ -108,26 +108,30 @@ sub configLoadExpect commandSetTest($oOption, $strCommand); argvWriteTest($oOption); + my $bErrorFound = false; + eval { configLoad(); - }; - - if ($@) + return true; + } + or do { + my $oException = $EVAL_ERROR; + if (!defined($iExpectedError)) { - confess $@; + confess $oException; } - my $oMessage = $@; + $bErrorFound = true; - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) + if (isException($oException)) { - if ($oMessage->code() != $iExpectedError) + if ($oException->code() != $iExpectedError) { - confess "expected error ${iExpectedError} from configLoad but got " . $oMessage->code() . - " '" . $oMessage->message() . "'"; + confess "expected error ${iExpectedError} from configLoad but got " . $oException->code() . + " '" . $oException->message() . "'"; } my $strError; @@ -178,29 +182,25 @@ sub configLoadExpect } else { - confess "must construct message for error ${iExpectedError}, use this as an example: '" . $oMessage->message() . "'"; + confess + "must construct message for error ${iExpectedError}, use this as an example: '" . $oException->message() . "'"; } - if ($oMessage->message() ne $strError) + if ($oException->message() ne $strError) { - confess "expected error message \"${strError}\" from configLoad but got \"" . $oMessage->message() . "\""; + confess "expected error message \"${strError}\" from configLoad but got \"" . $oException->message() . "\""; } } else { - confess "configLoad should throw pgBackRest::Common::Exception:\n$oMessage"; + confess "configLoad should throw pgBackRest::Common::Exception:\n$oException"; } - } - else - { - if (defined($iExpectedError)) - { - confess "expected error ${iExpectedError} from configLoad but got success"; - } - } + }; - # cmp_deeply(OPTION_rule_get(), $oOptionRuleExpected, 'compare original and new rule hashes') - # or die 'comparison failed'; + if (!$bErrorFound && defined($iExpectedError)) + { + confess "expected error ${iExpectedError} from configLoad but got success"; + } } sub optionTestExpect diff --git a/test/lib/pgBackRestTest/File/FileTest.pm b/test/lib/pgBackRestTest/File/FileTest.pm index 6961fd066..be3cbd29f 100755 --- a/test/lib/pgBackRestTest/File/FileTest.pm +++ b/test/lib/pgBackRestTest/File/FileTest.pm @@ -9,15 +9,16 @@ package pgBackRestTest::File::FileTest; use strict; use warnings FATAL => qw(all); use Carp qw(confess); +use English '-no_match_vars'; use Cwd qw(abs_path cwd); use Exporter qw(import); use Fcntl qw(:mode); use File::stat; use POSIX qw(ceil); -use Scalar::Util qw(blessed); use Time::HiRes qw(gettimeofday usleep); +use pgBackRest::Common::Exception; use pgBackRest::Common::Log; use pgBackRest::Config::Config; use pgBackRest::File; @@ -183,10 +184,10 @@ sub fileTestRun eval { $oFile->pathCreate($strPathType, $strPath, $strMode); - }; - + return true; + } # Check for errors - if ($@) + or do { # Ignore errors if the path did not exist if ($bErrorExpected) @@ -194,8 +195,8 @@ sub fileTestRun next; } - confess "error raised: " . $@ . "\n"; - } + confess "error raised: " . $EVAL_ERROR . "\n"; + }; if ($bErrorExpected) { @@ -301,17 +302,17 @@ sub fileTestRun eval { $oFile->move(PATH_BACKUP_ABSOLUTE, $strSourceFile, PATH_BACKUP_ABSOLUTE, $strDestinationFile, $bCreate); - }; - - if ($@) + return true; + } + or do { if (!$bSourceExists || (!$bDestinationExists && !$bCreate) || $bSourceError || $bDestinationError) { next; } - confess 'error raised: ' . $@ . "\n"; - } + confess 'error raised: ' . $EVAL_ERROR . "\n"; + }; if (!$bSourceExists || (!$bDestinationExists && !$bCreate) || $bSourceError || $bDestinationError) { @@ -381,17 +382,17 @@ sub fileTestRun eval { $oFile->compress(PATH_BACKUP_ABSOLUTE, $strFile); - }; - - if ($@) + return true; + } + or do { if (!$bExists || $bError) { next; } - confess 'error raised: ' . $@ . "\n"; - } + confess 'error raised: ' . $EVAL_ERROR . "\n"; + }; if (!$bExists || $bError) { @@ -570,18 +571,18 @@ sub fileTestRun eval { $oFile->manifest(PATH_BACKUP_ABSOLUTE, $strPath, \%oManifestHash); - }; - + return true; + } # Check for an error - if ($@) + or do { if ($bErrorExpected) { next; } - confess 'error raised: ' . $@ . "\n"; - } + confess 'error raised: ' . $EVAL_ERROR . "\n"; + }; # Check for an expected error if ($bErrorExpected) @@ -720,17 +721,17 @@ sub fileTestRun eval { @stryFileList = $oFile->list(PATH_BACKUP_ABSOLUTE, $strPath, $strExpression, $strSort, $bIgnoreMissing); - }; - - if ($@) + return true; + } + or do { if ($bErrorExpected) { next; } - confess 'error raised: ' . $@ . "\n"; - } + confess 'error raised: ' . $EVAL_ERROR . "\n"; + }; if ($bErrorExpected) { @@ -825,9 +826,9 @@ sub fileTestRun eval { $bRemoved = $oFile->remove(PATH_BACKUP_ABSOLUTE, $strFile, $bTemp, $bIgnoreMissing); - }; - - if ($@) + return true; + } + or do { if ($bError || $bRemote) { @@ -839,8 +840,8 @@ sub fileTestRun next; } - confess 'unexpected error raised: ' . $@; - } + confess 'unexpected error raised: ' . $EVAL_ERROR; + }; if ($bError || $bRemote) { @@ -932,18 +933,18 @@ sub fileTestRun eval { - ($strHash, $iSize) = $oFile->hashSize(PATH_BACKUP_ABSOLUTE, $strFile, $bCompressed) - }; - - if ($@) + ($strHash, $iSize) = $oFile->hashSize(PATH_BACKUP_ABSOLUTE, $strFile, $bCompressed); + return true; + } + or do { if ($bErrorExpected) { next; } - confess 'unexpected error raised: ' . $@; - } + confess 'unexpected error raised: ' . $EVAL_ERROR; + }; if ($bErrorExpected) { @@ -1011,29 +1012,23 @@ sub fileTestRun { confess "bExists is set to ${bExists}, but exists() returned " . !$bExists; } - }; - if ($@) + return true; + } + or do { - my $oMessage = $@; + my $oException = $@; my $iCode; my $strMessage; - if (blessed($oMessage)) + if (isException($oException)) { - if ($oMessage->isa('pgBackRest::Common::Exception')) - { - $iCode = $oMessage->code(); - $strMessage = $oMessage->message(); - } - else - { - confess 'unknown error object'; - } + $iCode = $oException->code(); + $strMessage = $oException->message(); } else { - $strMessage = $oMessage; + $strMessage = $oException; } if ($bError) @@ -1042,7 +1037,7 @@ sub fileTestRun } confess 'error raised: ' . $strMessage . "\n"; - } + }; } } } @@ -1197,8 +1192,6 @@ sub fileTestRun # Run file copy in an eval block because some errors are expected my $bReturn; - # - # exit; eval { @@ -1208,32 +1201,26 @@ sub fileTestRun $bSourceCompressed, $bDestinationCompress, $bSourceIgnoreMissing, undef, '0770', false, undef, undef, $bChecksumAppend); - }; + return true; + } # Check for errors after copy - if ($@) + or do { - my $oMessage = $@; + my $oException = $EVAL_ERROR; - if (blessed($oMessage)) + if (isException($oException)) { - if ($oMessage->isa('pgBackRest::Common::Exception')) + if ($bSourceMissing && !$bSourceIgnoreMissing) { - if ($bSourceMissing && !$bSourceIgnoreMissing) - { - next; - } + next; + } - confess $oMessage->message() . "\n" . $oMessage->trace(); - } - else - { - confess 'unknown error object: ' . $oMessage; - } + confess $oException->message() . (defined($oException->trace()) ? "\n" . $oException->trace() : ''); } - confess $oMessage; - } + confess $oException; + }; if ($bSourceMissing) { diff --git a/test/lint/perlcritic.policy b/test/lint/perlcritic.policy index c6620d363..a9b2d5f65 100644 --- a/test/lint/perlcritic.policy +++ b/test/lint/perlcritic.policy @@ -67,9 +67,6 @@ severity = 5 # S4 - Requires simple assignments in declarations. (TEST ONLY) [-Variables::ProhibitAugmentedAssignmentInDeclaration] -# S3 - Requires safe checking of evals. -[-ErrorHandling::RequireCheckingReturnValueOfEval] - # S4 - Requires parans when logical and bitwise booleans are mixed. [-ValuesAndExpressions::ProhibitMixedBooleanOperators] diff --git a/test/test.pl b/test/test.pl index 992e0016f..ed70dbfea 100755 --- a/test/test.pl +++ b/test/test.pl @@ -9,6 +9,7 @@ use strict; use warnings FATAL => qw(all); use Carp qw(confess longmess); +use English '-no_match_vars'; # Convert die to confess to capture the stack trace $SIG{__DIE__} = sub { Carp::confess @_ }; @@ -19,9 +20,9 @@ use Cwd qw(abs_path cwd); use Pod::Usage qw(pod2usage); use POSIX qw(ceil); use Time::HiRes qw(gettimeofday); -use Scalar::Util qw(blessed); use lib dirname($0) . '/../lib'; +use pgBackRest::Common::Exception; use pgBackRest::Common::Ini; use pgBackRest::Common::Log; use pgBackRest::Common::String; @@ -138,76 +139,80 @@ GetOptions ('q|quiet' => \$bQuiet, 'no-lint' => \$bNoLint) or pod2usage(2); -# Display version and exit if requested -if ($bVersion || $bHelp) -{ - syswrite(*STDOUT, BACKREST_NAME . ' ' . BACKREST_VERSION . " Test Engine\n"); - if ($bHelp) +#################################################################################################################################### +# Run in eval block to catch errors +#################################################################################################################################### +eval +{ + # Display version and exit if requested + if ($bVersion || $bHelp) { - syswrite(*STDOUT, "\n"); + syswrite(*STDOUT, BACKREST_NAME . ' ' . BACKREST_VERSION . " Test Engine\n"); + + if ($bHelp) + { + syswrite(*STDOUT, "\n"); + pod2usage(); + } + + exit 0; + } + + if (@ARGV > 0) + { + syswrite(*STDOUT, "invalid parameter\n\n"); pod2usage(); } - exit 0; -} + ################################################################################################################################ + # Setup + ################################################################################################################################ + # Set a neutral umask so tests work as expected + umask(0); -if (@ARGV > 0) -{ - syswrite(*STDOUT, "invalid parameter\n\n"); - pod2usage(); -} + # Set console log level + if ($bQuiet) + { + $strLogLevel = 'off'; + } -#################################################################################################################################### -# Setup -#################################################################################################################################### -# Set a neutral umask so tests work as expected -umask(0); + logLevelSet(uc($strLogLevel), uc($strLogLevel)); -# Set console log level -if ($bQuiet) -{ - $strLogLevel = 'off'; -} + if ($strModuleTest ne 'all' && $strModule eq 'all') + { + confess "--module must be provided for --test=\"${strModuleTest}\""; + } -logLevelSet(uc($strLogLevel), uc($strLogLevel)); + if (defined($iModuleTestRun) && $strModuleTest eq 'all') + { + confess "--test must be provided for --run=\"${iModuleTestRun}\""; + } -if ($strModuleTest ne 'all' && $strModule eq 'all') -{ - confess "--module must be provided for --test=\"${strModuleTest}\""; -} + # Check process total + if (defined($iProcessMax) && ($iProcessMax < 1 || $iProcessMax > OPTION_DEFAULT_PROCESS_MAX_MAX)) + { + confess 'process-max must be between 1 and ' . OPTION_DEFAULT_PROCESS_MAX_MAX; + } -if (defined($iModuleTestRun) && $strModuleTest eq 'all') -{ - confess "--test must be provided for --run=\"${iModuleTestRun}\""; -} + # Set test path if not expicitly set + if (!defined($strTestPath)) + { + $strTestPath = cwd() . '/test'; + } -# Check process total -if (defined($iProcessMax) && ($iProcessMax < 1 || $iProcessMax > OPTION_DEFAULT_PROCESS_MAX_MAX)) -{ - confess 'process-max must be between 1 and ' . OPTION_DEFAULT_PROCESS_MAX_MAX; -} + # Get the base backrest path + my $strBackRestBase = dirname(dirname(abs_path($0))); -# Set test path if not expicitly set -if (!defined($strTestPath)) -{ - $strTestPath = cwd() . '/test'; -} + ################################################################################################################################ + # Build Docker containers + ################################################################################################################################ + if ($bVmBuild) + { + containerBuild($strVm, $bVmForce, $strDbVersion); + exit 0; + } -# Get the base backrest path -my $strBackRestBase = dirname(dirname(abs_path($0))); - -#################################################################################################################################### -# Build Docker containers -#################################################################################################################################### -if ($bVmBuild) -{ - containerBuild($strVm, $bVmForce, $strDbVersion); - exit 0; -} - -eval -{ ################################################################################################################################ # Start VM and run ################################################################################################################################ @@ -547,24 +552,29 @@ eval executeTest("sudo rm -rf ${strTestPath}"); } } -}; -if ($@) -{ - my $oMessage = $@; - - # If a backrest exception then return the code - don't confess - if (blessed($oMessage) && $oMessage->isa('pgBackRest::Common::Exception')) + if (!$bDryRun && !$bVmOut) { - syswrite(*STDOUT, $oMessage->trace()); - exit $oMessage->code(); + &log(INFO, 'TESTS COMPLETED SUCCESSFULLY (DESPITE ANY ERROR MESSAGES YOU SAW)'); } - syswrite(*STDOUT, $oMessage); - exit 250; + # Exit with success + exit 0; } -if (!$bDryRun && !$bVmOut) +#################################################################################################################################### +# Check for errors +#################################################################################################################################### +or do { - &log(INFO, 'TESTS COMPLETED SUCCESSFULLY (DESPITE ANY ERROR MESSAGES YOU SAW)'); -} + # If a backrest exception then return the code + exit $EVAL_ERROR->code() if (isException($EVAL_ERROR)); + + # Else output the unhandled error + print $EVAL_ERROR; + exit ERROR_UNHANDLED; +}; + +# It shouldn't be possible to get here +&log(ASSERT, 'execution reached invalid location in ' . __FILE__ . ', line ' . __LINE__); +exit ERROR_ASSERT;