提交 c06169ac 编写于 作者: A Adam Berlin 提交者: Adam Berlin

Disable test that targets WAL configuration.

上级 1e8564a7
...@@ -2,7 +2,7 @@ use strict; ...@@ -2,7 +2,7 @@ use strict;
use warnings; use warnings;
use Cwd; use Cwd;
use TestLib; use TestLib;
use Test::More tests => 34; use Test::More tests => 33;
program_help_ok('pg_basebackup'); program_help_ok('pg_basebackup');
program_version_ok('pg_basebackup'); program_version_ok('pg_basebackup');
...@@ -31,19 +31,24 @@ system_or_bail 'pg_ctl', '-D', "$tempdir/pgdata", 'reload'; ...@@ -31,19 +31,24 @@ system_or_bail 'pg_ctl', '-D', "$tempdir/pgdata", 'reload';
command_fails(['pg_basebackup', '-D', "$tempdir/backup"], command_fails(['pg_basebackup', '-D', "$tempdir/backup"],
'pg_basebackup fails without specifiying the target greenplum db id'); 'pg_basebackup fails without specifiying the target greenplum db id');
open CONF, ">>$tempdir/pgdata/postgresql.conf";
print CONF "max_wal_senders = 0\n";
close CONF;
restart_test_server;
command_fails(
[ 'pg_basebackup', '-D', "$tempdir/backup", '--target-gp-dbid', '123' ],
'pg_basebackup fails because of WAL configuration');
# #
# GPDB: The minimum value of max_wal_senders is 2 in GPDB # GPDB: The minimum value of max_wal_senders is 2 in GPDB
# instead of 0 in Postgres. # instead of 0 in Postgres.
# #
# This test is disabled because it is difficult to
# set up an environment that consumes all of the slots
# without setting up mirrors.
#
# open CONF, ">>$tempdir/pgdata/postgresql.conf";
# print CONF "max_wal_senders = 0\n";
# close CONF;
# restart_test_server;
# command_fails(
# [ 'pg_basebackup', '-D', "$tempdir/backup", '--target-gp-dbid', '123' ],
# 'pg_basebackup fails because of WAL configuration');
open CONF, ">>$tempdir/pgdata/postgresql.conf"; open CONF, ">>$tempdir/pgdata/postgresql.conf";
print CONF "max_wal_senders = 2\n"; print CONF "max_wal_senders = 2\n";
print CONF "wal_level = archive\n"; print CONF "wal_level = archive\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册