1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-17 01:12:23 +02:00

Skip stopping PostgreSQL 9.1 in real/all integration test.

Stopping the cluster has started consistently running out of memory on PostgreSQL 9.1. This seems to have happened after pulling in new packages at some point so it might be build related.

Stopping the cluster is not critical for 9.1 so skip it.
This commit is contained in:
David Steele
2022-05-31 16:43:18 -04:00
parent 2feaaeaac8
commit 2c38c9a56f
2 changed files with 6 additions and 3 deletions

View File

@ -470,6 +470,7 @@ sub clusterStop
# Set defaults # Set defaults
my $bIgnoreLogError = defined($$hParam{bIgnoreLogError}) ? $$hParam{bIgnoreLogError} : false; my $bIgnoreLogError = defined($$hParam{bIgnoreLogError}) ? $$hParam{bIgnoreLogError} : false;
my $bStop = defined($hParam->{bStop}) ? $$hParam{bStop} : true;
# Disconnect user session # Disconnect user session
$self->sqlDisconnect(); $self->sqlDisconnect();
@ -484,7 +485,7 @@ sub clusterStop
} }
# If pg process is running then stop the cluster # If pg process is running then stop the cluster
if (-e $self->dbBasePath() . '/' . DB_FILE_POSTMTRPID) if ($bStop && -e $self->dbBasePath() . '/' . DB_FILE_POSTMTRPID)
{ {
$self->executeSimple($self->pgBinPath() . '/pg_ctl stop -D ' . $self->dbBasePath() . ' -w -s -m fast'); $self->executeSimple($self->pgBinPath() . '/pg_ctl stop -D ' . $self->dbBasePath() . ' -w -s -m fast');
} }

View File

@ -745,9 +745,11 @@ sub run
$oHostDbPrimary->clusterStart({bHotStandby => true}); $oHostDbPrimary->clusterStart({bHotStandby => true});
$oHostDbPrimary->sqlSelectOneTest('select message from test', $strTimelineMessage, {iTimeout => 120}); $oHostDbPrimary->sqlSelectOneTest('select message from test', $strTimelineMessage, {iTimeout => 120});
# Stop clusters to catch any errors in the postgres log # Stop clusters to catch any errors in the postgres log. Stopping the cluster has started consistently running out of memory
# on PostgreSQL 9.1. This seems to have happened after pulling in new packages at some point so it might be build related.
# Stopping the cluster is not critical for 9.1 so skip it.
#--------------------------------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------------------------------
$oHostDbPrimary->clusterStop(); $oHostDbPrimary->clusterStop({bStop => $oHostDbPrimary->pgVersion() != PG_VERSION_91});
# Stanza-delete --force without access to pgbackrest on database host. This test is not version specific so is run on only # Stanza-delete --force without access to pgbackrest on database host. This test is not version specific so is run on only
# one version. # one version.