Skip to content

Commit

Permalink
Merge of patch for MDEV#6399.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirbhay Choubey committed Jul 12, 2014
1 parent b6a116c commit b77fc5a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 7 deletions.
3 changes: 3 additions & 0 deletions mysql-test/lib/My/ConfigFactory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ my @mysqld_rules=
{ 'pid-file' => \&fix_pidfile },
{ '#host' => \&fix_host },
{ 'port' => \&fix_port },
# galera base_port and port used during SST
{ '#galera_port' => \&fix_port },
{ '#sst_port' => \&fix_port },
{ 'socket' => \&fix_socket },
{ '#log-error' => \&fix_log_error },
{ 'general-log' => 1 },
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/mysql-test-run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3224,8 +3224,7 @@ ()
if ((check_wsrep_provider_env() == 1) || ($file_wsrep_provider ne "")) {
# Add galera test suites
mtr_report(" - adding wsrep, galera to default test suites");
#push @DEFAULT_SUITES, qw(wsrep galera);
push @DEFAULT_SUITES, qw(wsrep);
push @DEFAULT_SUITES, qw(wsrep galera);
}
}
}
Expand Down Expand Up @@ -4895,6 +4894,7 @@ ($$)
# Galera-related warnings.
qr|WSREP:.*down context.*|,
qr|WSREP: Failed to send state UUID:.*|,
qr|WSREP: wsrep_sst_receive_address.*|,
);

my $matched_lines= [];
Expand Down
7 changes: 5 additions & 2 deletions mysql-test/suite/galera/galera_2nodes.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
binlog-format=row
wsrep_provider=@ENV.WSREP_PROVIDER
wsrep_cluster_address='gcomm://'
wsrep_provider_options='base_port=@mysqld.1.#galera_port'
wsrep_sst_receive_address='127.0.0.1:@mysqld.1.#sst_port'

[mysqld.2]
binlog-format=row
wsrep_provider=@ENV.WSREP_PROVIDER
wsrep_cluster_address='gcomm://127.0.0.1:4567'
wsrep_provider_options='gmcast.listen_addr=tcp://127.0.0.1:4568'
wsrep_cluster_address='gcomm://127.0.0.1:@mysqld.1.#galera_port'
wsrep_provider_options='base_port=@mysqld.2.#galera_port'
wsrep_sst_receive_address='127.0.0.1:@mysqld.2.#sst_port'

[ENV]
NODE_MYPORT_1= @mysqld.1.port
Expand Down
8 changes: 8 additions & 0 deletions mysql-test/suite/wsrep/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Use default setting for mysqld processes
!include include/default_mysqld.cnf

[mysqld.1]

[ENV]
GALERA_BASE_PORT=@mysqld.1.#galera_port

2 changes: 1 addition & 1 deletion mysql-test/suite/wsrep/t/binlog_format.opt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --wsrep-on=1 --log-bin
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --wsrep_provider_options='base_port=$GALERA_BASE_PORT' --wsrep-on=1 --log-bin
2 changes: 1 addition & 1 deletion mysql-test/suite/wsrep/t/foreign_key.opt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm://
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --wsrep_provider_options='base_port=$GALERA_BASE_PORT'
2 changes: 1 addition & 1 deletion mysql-test/suite/wsrep/t/pool_of_threads.opt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --thread_handling=pool-of-threads
--binlog-format=row --innodb_autoinc_lock_mode=2 --innodb_locks_unsafe_for_binlog=1 --wsrep-provider=$WSREP_PROVIDER --wsrep-cluster-address=gcomm:// --wsrep_provider_options='base_port=$GALERA_BASE_PORT' --thread_handling=pool-of-threads
6 changes: 6 additions & 0 deletions mysql-test/suite/wsrep/t/variables.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
--source include/have_wsrep.inc

# Set galera's base_port so that test can run in parallel with other galera
# tests.
--disable_query_log
eval SET GLOBAL wsrep_provider_options='base_port=$GALERA_BASE_PORT';
--enable_query_log

--echo
--echo # MDEV#5534: mysql_tzinfo_to_sql generates wrong query
--echo #
Expand Down

0 comments on commit b77fc5a

Please sign in to comment.