pgbackrest.git / summary / log / commit / refs
commit ba098d7b91c189d8ee7f45a157ba8e5a243eb85b
Author: David Steele <david@pgmasters.net>
Date: Thu Dec 24 15:32:25 2015 +0000
Fixed an issue where longer-running backups/restores would timeout when remote and threaded.
Keepalives are now used to make sure the remote for the main process does not timeout while the thread remotes do all the work. The error messages for timeouts was also improved to make debugging easier.
CHANGELOG.md | 2 ++
doc/xml/change-log.xml | 3 ++
lib/BackRest/Backup.pm | 16 +++++++---
lib/BackRest/Common/Exception.pm | 2 ++
lib/BackRest/Common/Log.pm | 2 ++
lib/BackRest/Config/Config.pm | 3 +-
lib/BackRest/Protocol/Common.pm | 19 ++++++++++++
lib/BackRest/Protocol/CommonMaster.pm | 27 +++++++++++++++++
lib/BackRest/Protocol/IO.pm | 10 ++++--
lib/BackRest/Protocol/RemoteMinion.pm | 18 +++++------
lib/BackRest/Restore.pm | 6 +++-
test/lib/BackRestTest/BackupTest.pm | 32 ++++++++++++++++++--
test/lib/BackRestTest/Common/ExecuteTest.pm | 9 ++++--
test/log/backup-synthetic-005.log | 47 ++++++++++++++++++++++++++---
14 files changed, 167 insertions(+), 29 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cf8d416a0..3d8f8fff4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,8 @@
## v0.90: UNDER DEVELOPMENT
__No Release Date Set__
+* Fixed an issue where longer-running backups/restores would timeout when remote and threaded. Keepalives are now used to make sure the remote for the main process does not timeout while the thread remotes do all the work. The error messages for timeouts was also improved to make debugging easier.
+
* Allow restores to be performed on a read-only repository by using `--no-lock` and `--log-level-file=off`. The `--no-lock` option can only be used with restores.
## v0.88: Documentation and Minor Bug Fixes
diff --git a/doc/xml/change-log.xml b/doc/xml/change-log.xml
index e773b7fbf..3063c4e4a 100644
--- a/doc/xml/change-log.xml
+++ b/doc/xml/change-log.xml
@@ -8,6 +8,9 @@
<changelog>
<changelog-release date="XXXX-XX-XX" version="0.90" title="UNDER DEVELOPMENT">
<release-feature-bullet-list>
+ <release-feature>
+ <text>Fixed an issue where longer-running backups/restores would timeout when remote and threaded. Keepalives are now used to make sure the remote for the main process does not timeout while the thread remotes do all the work. The error messages for timeouts was also improved to make debugging easier.</text>
+ </release-feature>
<release-feature>
<text>Allow restores to be performed on a read-only repository by using <setting>--no-lock</setting> and <setting>--log-level-file=off</setting>. The <setting>--no-lock</setting> option can only be used with restores.</text>
</release-feature>
diff --git a/lib/BackRest/Backup.pm b/lib/BackRest/Backup.pm
index ea161cd48..86ad0814c 100644
--- a/lib/BackRest/Backup.pm
+++ b/lib/BackRest/Backup.pm
@@ -540,11 +540,8 @@ sub processManifest
$lManifestSaveSize = optionGet(OPTION_MANIFEST_SAVE_THRESHOLD);
}
- if (optionGet(OPTION_THREAD_MAX) == 1)
- {
- # Start backup test point
- &log(TEST, TEST_BACKUP_START);
- }
+ # Start backup test point
+ &log(TEST, TEST_BACKUP_START);
# Iterate all backup files
foreach my $strPathKey (sort(keys(%oFileCopyMap)))
@@ -593,9 +590,15 @@ sub processManifest
$oParam{queue} = \@oyBackupQueue;
$oParam{result_queue} = $oResultQueue;
+ # Keep the protocol layer from timing out
+ protocolGet()->keepAlive();
+
threadGroupRun($iThreadIdx, 'backup', \%oParam);
}
+ # Keep the protocol layer from timing out
+ protocolGet()->keepAlive();
+
# Start backup test point
&log(TEST, TEST_BACKUP_START);
@@ -616,6 +619,9 @@ sub processManifest
$$oMessage{copied}, $$oMessage{size}, $$oMessage{checksum},
$lManifestSaveSize, $lManifestSaveCurrent);
}
+
+ # Keep the protocol layer from timing out
+ protocolGet()->keepAlive();
}
while (!$bDone);
}
diff --git a/lib/BackRest/Common/Exception.pm b/lib/BackRest/Common/Exception.pm
index bf674799a..3131f18ac 100644
--- a/lib/BackRest/Common/Exception.pm
+++ b/lib/BackRest/Common/Exception.pm
@@ -100,6 +100,8 @@ use constant ERROR_FILE_WRITE => ERROR_MIN
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_INVALID_VALUE => ERROR_MAXIMUM - 1;
push @EXPORT, qw(ERROR_INVALID_VALUE);
diff --git a/lib/BackRest/Common/Log.pm b/lib/BackRest/Common/Log.pm
index 5fda080b4..f52efe350 100644
--- a/lib/BackRest/Common/Log.pm
+++ b/lib/BackRest/Common/Log.pm
@@ -89,6 +89,8 @@ use constant TEST_BACKUP_NORESUME => 'BACKUP-N
push @EXPORT, qw(TEST_BACKUP_NORESUME);
use constant TEST_BACKUP_START => 'BACKUP-START';
push @EXPORT, qw(TEST_BACKUP_START);
+use constant TEST_KEEP_ALIVE => 'KEEP_ALIVE';
+ push @EXPORT, qw(TEST_KEEP_ALIVE);
use constant TEST_ARCHIVE_PUSH_ASYNC_START => 'ARCHIVE-PUSH-ASYNC-START';
push @EXPORT, qw(TEST_ARCHIVE_PUSH_ASYNC_START);
diff --git a/lib/BackRest/Config/Config.pm b/lib/BackRest/Config/Config.pm
index 112c59915..e8a2e4292 100644
--- a/lib/BackRest/Config/Config.pm
+++ b/lib/BackRest/Config/Config.pm
@@ -2258,7 +2258,8 @@ push @EXPORT, qw(protocolGet);
####################################################################################################################################
sub protocolTimeoutGet
{
- return optionGet(OPTION_DB_TIMEOUT) + 30;
+ return optionGet(OPTION_DB_TIMEOUT) >= OPTION_DEFAULT_DB_TIMEOUT ?
+ optionGet(OPTION_DB_TIMEOUT) + 30 : optionGet(OPTION_DB_TIMEOUT);
}
push @EXPORT, qw(protocolTimeoutGet);
diff --git a/lib/BackRest/Protocol/Common.pm b/lib/BackRest/Protocol/Common.pm
index e77cc8a94..1629cb3e6 100644
--- a/lib/BackRest/Protocol/Common.pm
+++ b/lib/BackRest/Protocol/Common.pm
@@ -7,6 +7,8 @@ use strict;
use warnings FATAL => qw(all);
use Carp qw(confess);
+use Exporter qw(import);
+ our @EXPORT = qw();
use Compress::Raw::Zlib qw(WANT_GZIP Z_OK Z_BUF_ERROR Z_STREAM_END);
use File::Basename qw(dirname);
@@ -24,6 +26,14 @@ use constant OP_PROTOCOL_COMMON => 'Protocol
use constant OP_PROTOCOL_COMMON_NEW => OP_PROTOCOL_COMMON . "->new";
+####################################################################################################################################
+# Operation constants
+####################################################################################################################################
+use constant OP_NOOP => 'noop';
+ push @EXPORT, qw(OP_NOOP);
+use constant OP_EXIT => 'exit';
+ push @EXPORT, qw(OP_EXIT);
+
####################################################################################################################################
# CONSTRUCTOR
####################################################################################################################################
@@ -68,6 +78,15 @@ sub new
);
}
+####################################################################################################################################
+# keepAlive
+#
+# Don't do anything for keep alive if there is no remote.
+####################################################################################################################################
+sub keepAlive
+{
+}
+
####################################################################################################################################
# blockRead
#
diff --git a/lib/BackRest/Protocol/CommonMaster.pm b/lib/BackRest/Protocol/CommonMaster.pm
index c79eaed53..93492f34b 100644
--- a/lib/BackRest/Protocol/CommonMaster.pm
+++ b/lib/BackRest/Protocol/CommonMaster.pm
@@ -9,6 +9,7 @@ use warnings FATAL => qw(all);
use Carp qw(confess);
use File::Basename qw(dirname);
+use Time::HiRes qw(gettimeofday);
use lib dirname($0) . '/../lib';
use BackRest::Common::Exception;
@@ -72,6 +73,10 @@ sub new
# Check greeting to be sure the protocol matches
$self->greetingRead();
+ # Setup the keepalive timer
+ $self->{fKeepAliveTimeout} = $iProtocolTimeout / 2 > 120 ? 120 : $iProtocolTimeout / 2;
+ $self->{fKeepAliveTime} = gettimeofday();
+
# Return from function and log return values if any
return logDebugReturn
(
@@ -198,6 +203,9 @@ sub outputRead
(defined($strOutput) ? "${strOutput}" : ''), $iErrorCode, $bSuppressLog);
}
+ # Reset the keep alive time
+ $self->{fKeepAliveTime} = gettimeofday();
+
# If output is required and there is no output, raise exception
if (defined($bOutputRequired) && $bOutputRequired && !defined($strOutput))
{
@@ -317,4 +325,23 @@ sub cmdExecute
return $self->outputRead($bOutputRequired, $strErrorPrefix);
}
+####################################################################################################################################
+# keepAlive
+#
+# Send periodic noops so the remote does not time out.
+####################################################################################################################################
+sub keepAlive
+{
+ my $self = shift;
+
+ if (gettimeofday() - $self->{fKeepAliveTimeout} > $self->{fKeepAliveTime})
+ {
+ $self->cmdExecute(OP_NOOP, undef, false);
+ $self->{fKeepAliveTime} = gettimeofday();
+
+ # Keep alive test point
+ &log(TEST, TEST_KEEP_ALIVE);
+ }
+}
+
1;
diff --git a/lib/BackRest/Protocol/IO.pm b/lib/BackRest/Protocol/IO.pm
index 94fd20c41..b76cec134 100644
--- a/lib/BackRest/Protocol/IO.pm
+++ b/lib/BackRest/Protocol/IO.pm
@@ -165,6 +165,7 @@ sub lineRead
my $self = shift;
my $iTimeout = shift;
my $bInRead = shift;
+ my $bError = shift;
# If there's already data in the buffer try to find the next linefeed
my $iLineFeedPos = defined($self->{strBuffer}) ? index($self->{strBuffer}, "\n", $self->{iBufferPos}) : -1;
@@ -286,6 +287,11 @@ sub lineRead
# If not linefeed was found within the time return undef
if ($iLineFeedPos == -1)
{
+ if (!defined($bError) || $bError)
+ {
+ confess &log(ERROR, "unable to read line after $self->{iProtocolTimeout} seconds", ERROR_PROTOCOL_TIMEOUT);
+ }
+
return undef;
}
}
@@ -435,7 +441,7 @@ sub bufferRead
while ($fRemaining > 0);
# Throw an error if timeout happened before required bytes were read
- confess &log(ERROR, "unable to read ${iRequestSize} bytes after $self->{iProtocolTimeout} seconds");
+ confess &log(ERROR, "unable to read ${iRequestSize} bytes after $self->{iProtocolTimeout} seconds", ERROR_PROTOCOL_TIMEOUT);
}
# Otherwise do a non-blocking read and return whatever bytes are ready
@@ -531,7 +537,7 @@ sub waitPid
{
$strError = undef;
- while (my $strLine = $self->lineRead(0, false))
+ while (my $strLine = $self->lineRead(0, false, false))
{
if (defined($strError))
{
diff --git a/lib/BackRest/Protocol/RemoteMinion.pm b/lib/BackRest/Protocol/RemoteMinion.pm
index 106025bbb..515e41f25 100644
--- a/lib/BackRest/Protocol/RemoteMinion.pm
+++ b/lib/BackRest/Protocol/RemoteMinion.pm
@@ -18,6 +18,7 @@ use BackRest::Config::Config;
use BackRest::Db;
use BackRest::File;
use BackRest::Info;
+use BackRest::Protocol::Common;
use BackRest::Protocol::CommonMinion;
####################################################################################################################################
@@ -27,15 +28,6 @@ use constant OP_PROTOCOL_REMOTE_MINION => 'Protocol
use constant OP_PROTOCOL_REMOTE_MINION_NEW => OP_PROTOCOL_REMOTE_MINION . "->new";
-####################################################################################################################################
-# Operation constants
-####################################################################################################################################
-use constant
-{
- OP_NOOP => 'noop',
- OP_EXIT => 'exit'
-};
-
####################################################################################################################################
# CONSTRUCTOR
####################################################################################################################################
@@ -281,8 +273,12 @@ sub process
$self->outputWrite($oDb->executeSql(paramGet(\%oParamHash, 'script'),
paramGet(\%oParamHash, 'ignore-error', false)));
}
- # Continue if noop or exit
- elsif ($strCommand ne OP_NOOP && $strCommand ne OP_EXIT)
+ elsif ($strCommand eq OP_NOOP)
+ {
+ $self->outputWrite();
+ }
+ # Continue if exit
+ elsif ($strCommand ne OP_EXIT)
{
confess "invalid command: ${strCommand}";
}
diff --git a/lib/BackRest/Restore.pm b/lib/BackRest/Restore.pm
index e0ef1d6fb..ea4117f93 100644
--- a/lib/BackRest/Restore.pm
+++ b/lib/BackRest/Restore.pm
@@ -840,7 +840,11 @@ sub process
}
# Complete thread queues
- while (!threadGroupComplete()) {};
+ while (!threadGroupComplete())
+ {
+ # Keep the protocol layer from timing out
+ protocolGet()->keepAlive();
+ };
}
else
{
diff --git a/test/lib/BackRestTest/BackupTest.pm b/test/lib/BackRestTest/BackupTest.pm
index ed85c0036..72443ae7b 100755
--- a/test/lib/BackRestTest/BackupTest.pm
+++ b/test/lib/BackRestTest/BackupTest.pm
@@ -848,12 +848,40 @@ sub BackRestTestBackup_Test
# Full backup
#-----------------------------------------------------------------------------------------------------------------------
my $strType = 'full';
+ my $strOptionalParam = '--manifest-save-threshold=3';
+ my $strTestPoint;
+
+ if ($bNeutralTest && $bRemote)
+ {
+ $strOptionalParam .= ' --db-timeout=2';
+
+ if ($iThreadMax > 1)
+ {
+ $strTestPoint = TEST_KEEP_ALIVE;
+ }
+ }
BackRestTestBackup_ManifestLinkCreate(\%oManifest, 'base', 'link-test', '/test');
BackRestTestBackup_ManifestPathCreate(\%oManifest, 'base', 'path-test');
- my $strFullBackup = BackRestTestBackup_BackupSynthetic($strType, $strStanza, \%oManifest, undef,
- {strOptionalParam => '--manifest-save-threshold=3'});
+ my $strFullBackup = BackRestTestBackup_BackupSynthetic(
+ $strType, $strStanza, \%oManifest, undef,
+ {strOptionalParam => $strOptionalParam, strTest => $strTestPoint, fTestDelay => 0});
+
+ # Test protocol timeout
+ #-----------------------------------------------------------------------------------------------------------------------
+ if ($bNeutralTest && $bRemote)
+ {
+ BackRestTestBackup_BackupSynthetic(
+ $strType, $strStanza, \%oManifest, 'protocol timeout',
+ {strOptionalParam => '--db-timeout=1',
+ strTest => TEST_BACKUP_START,
+ fTestDelay => 1,
+ iExpectedExitStatus => ERROR_PROTOCOL_TIMEOUT});
+
+ # Remove the aborted backup so the next backup is not a resume
+ BackRestTestCommon_PathRemove(BackRestTestCommon_RepoPathGet() . "/temp/${strStanza}.tmp", $bRemote);
+ }
# Stop operations and make sure the correct error occurs
#-----------------------------------------------------------------------------------------------------------------------
diff --git a/test/lib/BackRestTest/Common/ExecuteTest.pm b/test/lib/BackRestTest/Common/ExecuteTest.pm
index 945a732ef..a265dc5a5 100644
--- a/test/lib/BackRestTest/Common/ExecuteTest.pm
+++ b/test/lib/BackRestTest/Common/ExecuteTest.pm
@@ -214,9 +214,14 @@ sub endRetry
}
# This is a hack to make regression tests pass even when threaded backup/restore sometimes return 255
- if ($self->{iExpectedExitStatus} == -1 && ($iExitStatus == 0 || $iExitStatus == 255))
+ if ($self->{iExpectedExitStatus} == -1)
{
- return 0;
+ if ($iExitStatus == 0 || $iExitStatus == 255)
+ {
+ return 0;
+ }
+
+ $self->{iExpectedExitStatus} = 0;
}
if ($iExitStatus != 0 || ($self->{iExpectedExitStatus} != 0 && $iExitStatus != $self->{iExpectedExitStatus}))
diff --git a/test/log/backup-synthetic-005.log b/test/log/backup-synthetic-005.log
index 3a4e69094..487e9a441 100644
--- a/test/log/backup-synthetic-005.log
+++ b/test/log/backup-synthetic-005.log
@@ -2,14 +2,14 @@ run 005 - rmt 1, cmp 0, hardlink 0
==================================
full backup
-> [BACKREST_BIN] --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --type=full --stanza=db backup
+> [BACKREST_BIN] --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --manifest-save-threshold=3 --db-timeout=2 --type=full --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
- INFO: backup start: --cmd-remote=[BACKREST_BIN] --no-compress --config=[TEST_PATH]/backrest/pg_backrest.conf --config-remote=[TEST_PATH]/db/pg_backrest.conf --db-host=127.0.0.1 --db-path=[TEST_PATH]/db/common --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-user=vagrant --log-level-console=debug --log-level-file=trace --manifest-save-threshold=3 --no-start-stop --repo-path=[TEST_PATH]/backrest --repo-remote-path=[TEST_PATH]/backrest --stanza=db --start-fast --type=full
+ INFO: backup start: --cmd-remote=[BACKREST_BIN] --no-compress --config=[TEST_PATH]/backrest/pg_backrest.conf --config-remote=[TEST_PATH]/db/pg_backrest.conf --db-host=127.0.0.1 --db-path=[TEST_PATH]/db/common --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=2 --db-user=vagrant --log-level-console=debug --log-level-file=trace --manifest-save-threshold=3 --no-start-stop --repo-path=[TEST_PATH]/backrest --repo-remote-path=[TEST_PATH]/backrest --stanza=db --start-fast --type=full
DEBUG: Common:::Lock::lockAquire(): bFailOnNoLock = <true>, bRemote = <false>, iProcessIdx = [undef], strLockType = backup
DEBUG: Common:::Lock::lockStopTest(): strRepoPath = [TEST_PATH]/backrest
DEBUG: Common:::Lock::lockAquire=>: bResult = true
-DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = [BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, strHost = 127.0.0.1, strUser = [USER-1]
-DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1830, strCommand = ssh -o Compression=no -o PasswordAuthentication=no vagrant@127.0.0.1 '[BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', strName = remote
+DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 2, strCommand = [BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=2 --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, strHost = 127.0.0.1, strUser = [USER-1]
+DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 2, strCommand = ssh -o Compression=no -o PasswordAuthentication=no vagrant@127.0.0.1 '[BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=2 --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', strName = remote
DEBUG: File->new(): iThreadIdx = [undef], oProtocol = [object], strBackupPath = [TEST_PATH]/backrest, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strRemote = db, strStanza = db
DEBUG: File->pathCreate(): bIgnoreExists = true, strMode = <0750>, strPath = [undef], strPathType = backup:cluster
DEBUG: File->exists(): strPath = [undef], strPathType = backup:cluster
@@ -54,7 +54,7 @@ DEBUG: File->remove=>: bRemoved = false
DEBUG: File->linkCreate(): bHard = <false>, bPathCreate = <true>, bRelative = true, strDestinationFile = latest, strDestinationPathType = backup:cluster, strSourceFile = [BACKUP-FULL-1], strSourcePathType = backup:cluster
DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = [TEST_PATH]/backrest/backup/db, strPathType = backup:absolute
INFO: backup stop
- INFO: expire start: --no-compress --config=[TEST_PATH]/backrest/pg_backrest.conf --log-level-console=debug --log-level-file=trace --repo-path=[TEST_PATH]/backrest --stanza=db
+ INFO: expire start: --no-compress --config=[TEST_PATH]/backrest/pg_backrest.conf --db-timeout=2 --log-level-console=debug --log-level-file=trace --repo-path=[TEST_PATH]/backrest --stanza=db
DEBUG: File->new(): iThreadIdx = [undef], oProtocol = [object], strBackupPath = [TEST_PATH]/backrest, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strRemote = db, strStanza = db
DEBUG: BackupInfo->new(): strBackupClusterPath = [TEST_PATH]/backrest/backup/db
INFO: archive retention type not set - archive logs will not be expired
@@ -190,6 +190,43 @@ db-version="9.3"
[db:history]
1={"db-catalog-version":201306121,"db-control-version":937,"db-system-id":6156904820763115222,"db-version":"9.3"}
+full backup (protocol timeout)
+> [BACKREST_BIN] --config=[TEST_PATH]/backrest/pg_backrest.conf --no-start-stop --db-timeout=1 --type=full --stanza=db backup --test --test-delay=1 --test-point=backup-start=y
+------------------------------------------------------------------------------------------------------------------------------------
+ INFO: backup start: --cmd-remote=[BACKREST_BIN] --no-compress --config=[TEST_PATH]/backrest/pg_backrest.conf --config-remote=[TEST_PATH]/db/pg_backrest.conf --db-host=127.0.0.1 --db-path=[TEST_PATH]/db/common --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=1 --db-user=vagrant --log-level-console=debug --log-level-file=trace --no-start-stop --repo-path=[TEST_PATH]/backrest --repo-remote-path=[TEST_PATH]/backrest --stanza=db --start-fast --test --test-delay=1 --test-point=backup-start=y --type=full
+DEBUG: Common:::Lock::lockAquire(): bFailOnNoLock = <true>, bRemote = <false>, iProcessIdx = [undef], strLockType = backup
+DEBUG: Common:::Lock::lockStopTest(): strRepoPath = [TEST_PATH]/backrest
+DEBUG: Common:::Lock::lockAquire=>: bResult = true
+DEBUG: Protocol::RemoteMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1, strCommand = [BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=1 --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote, strHost = 127.0.0.1, strUser = [USER-1]
+DEBUG: Protocol::CommonMaster->new(): iBufferMax = 4194304, iCompressLevel = 6, iCompressLevelNetwork = 3, iProtocolTimeout = 1, strCommand = ssh -o Compression=no -o PasswordAuthentication=no vagrant@127.0.0.1 '[BACKREST_BIN] --command=backup --config=[TEST_PATH]/db/pg_backrest.conf --db-port=[PORT-1] --db-socket-path=[TEST_PATH]/db --db-timeout=1 --repo-remote-path=[TEST_PATH]/backrest --stanza=db remote', strName = remote
+DEBUG: File->new(): iThreadIdx = [undef], oProtocol = [object], strBackupPath = [TEST_PATH]/backrest, strDefaultFileMode = <0640>, strDefaultPathMode = <0750>, strRemote = db, strStanza = db
+DEBUG: File->pathCreate(): bIgnoreExists = true, strMode = <0750>, strPath = [undef], strPathType = backup:cluster
+DEBUG: File->exists(): strPath = [undef], strPathType = backup:cluster
+DEBUG: File->exists=>: bExists = true
+DEBUG: BackupInfo->new(): strBackupClusterPath = [TEST_PATH]/backrest/backup/db
+DEBUG: Backup->typeFind(): strBackupClusterPath = [TEST_PATH]/backrest/backup/db, strType = full
+DEBUG: Backup->typeFind=>: strLabel = [undef]
+DEBUG: Db->info(): oFile = [object], strDbPath = [TEST_PATH]/db/common
+DEBUG: Db->info=>: fDbVersion = 9.3, iCatalogVersion = 201306121, iControlVersion = 937, ullDbSysId = 6156904820763115222
+DEBUG: File->exists(): strPath = [TEST_PATH]/db/common/postmaster.pid, strPathType = db:absolute
+DEBUG: File->exists=>: bExists = false
+DEBUG: Manifest->build(): bNoStartStop = true, oFile = [object], oLastManifest = [undef], oTablespaceMapRef = [undef], strDbClusterPath = [TEST_PATH]/db/common, strLevel = [undef]
+DEBUG: File->manifest(): oManifestHashRef = [hash], strPath = [TEST_PATH]/db/common/pg_tblspc, strPathType = db:absolute
+DEBUG: File->manifest(): oManifestHashRef = [hash], strPath = [TEST_PATH]/db/common, strPathType = db:absolute
+DEBUG: File->wait(): strPathType = db:absolute
+DEBUG: Backup->process: create temp backup path [TEST_PATH]/backrest/temp/db.tmp
+DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = [undef], strPathType = backup:tmp
+DEBUG: Backup->processManifest(): bCompress = false, bHardLink = false, oBackupManifest = [object], strType = full
+DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = base/base, strPathType = backup:tmp
+DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = base/global, strPathType = backup:tmp
+DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = base/path-test, strPathType = backup:tmp
+DEBUG: File->pathCreate(): bIgnoreExists = <false>, strMode = <0750>, strPath = base/pg_tblspc, strPathType = backup:tmp
+DEBUG: File->copy(): bAppendChecksum = <false>, bDestinationCompress = false, bDestinationPathCreate = true, bIgnoreMissingSource = true, bSourceCompressed = false, lModificationTime = [MODIFICATION-TIME-1], strDestinationFile = base/global/pg_control, strDestinationPathType = backup:tmp, strGroup = [undef], strMode = <0640>, strSourceFile = [TEST_PATH]/db/common/global/pg_control, strSourcePathType = db:absolute, strUser = [undef]
+ERROR: [141]: remote process terminated: ERROR [141]: unable to read line after 1 seconds
+DEBUG: Exit::exitSafe(): iExitCode = 141, strSignal = [undef]
+ INFO: backup stop
+DEBUG: Common:::Lock::lockRelease(): bFailOnNoLock = false
+
> [BACKREST_BIN] --config=[TEST_PATH]/db/pg_backrest.conf --force stop
------------------------------------------------------------------------------------------------------------------------------------
INFO: stop start: --config=[TEST_PATH]/db/pg_backrest.conf --force --log-level-console=debug --log-level-file=trace --repo-path=[TEST_PATH]/local
[parent: b0a6954671dc]