Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
84a24d36
Commit
84a24d36
authored
Oct 03, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17357: Test failure on galera.galera_pc_ignore_sb
Add wait until cluster has correct number of nodes.
parent
649451ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+1
-1
mysql-test/suite/galera/r/galera_pc_ignore_sb.result
mysql-test/suite/galera/r/galera_pc_ignore_sb.result
+5
-1
mysql-test/suite/galera/t/galera_pc_ignore_sb.test
mysql-test/suite/galera/t/galera_pc_ignore_sb.test
+13
-7
No files found.
mysql-test/suite/galera/disabled.def
View file @
84a24d36
...
...
@@ -33,4 +33,4 @@ galera_gc_fc_limit : MDEV-17061 Test failure on galera.galera_gc_fc_limit
partition : MDEV-13881 galera.partition failed in buildbot with wrong result
galera_as_slave_replication_budle : MDEV-15785 Test case galera_as_slave_replication_bundle caused debug assertion
galera_wan : MDEV-17259: Test failure on galera.galera_wan
galera_pic_ignore_sb : MDEV-17357 Test failure on galera.galera_pc_ignore_sb
mysql-test/suite/galera/r/galera_pc_ignore_sb.result
View file @
84a24d36
SET GLOBAL wsrep_provider_options = 'pc.ignore_sb=true';
SET @wsrep_cluster_address_orig = @@GLOBAL.wsrep_cluster_address;
SET @wsrep_provider_options_orig = @@GLOBAL.wsrep_provider_options;
SET GLOBAL wsrep_provider_options ='pc.ignore_sb=true';
Killing server ...
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
...
...
@@ -10,3 +12,5 @@ SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABL
VARIABLE_VALUE = 'ON'
1
SET GLOBAL wsrep_cluster_address = '';
SET GLOBAL wsrep_cluster_address = @wsrep_cluster_address_orig;
SET GLOBAL wsrep_provider_options = @wsrep_provider_options_orig;
mysql-test/suite/galera/t/galera_pc_ignore_sb.test
View file @
84a24d36
...
...
@@ -11,10 +11,13 @@
--
source
include
/
auto_increment_offset_save
.
inc
--
connection
node_1
--
let
$wsrep_cluster_address_orig
=
`SELECT @@wsrep_cluster_address`
--
let
$wsrep_provider_options_orig
=
`SELECT @@wsrep_provider_options`
SET
@
wsrep_cluster_address_orig
=
@@
GLOBAL
.
wsrep_cluster_address
;
SET
@
wsrep_provider_options_orig
=
@@
GLOBAL
.
wsrep_provider_options
;
SET
GLOBAL
wsrep_provider_options
=
'pc.ignore_sb=true'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
--
source
include
/
wait_condition
.
inc
SET
GLOBAL
wsrep_provider_options
=
'pc.ignore_sb=true'
;
--
connection
node_2
--
source
include
/
kill_galera
.
inc
...
...
@@ -33,14 +36,17 @@ SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABL
# Reset the master and restart the slave so that post-test checks can run
SET
GLOBAL
wsrep_cluster_address
=
''
;
--
disable_query_log
--
eval
SET
GLOBAL
wsrep_cluster_address
=
'$wsrep_cluster_address_orig'
;
--
eval
SET
GLOBAL
wsrep_provider_options
=
'$wsrep_provider_options_orig'
;
--
enable_query_log
SET
GLOBAL
wsrep_cluster_address
=
@
wsrep_cluster_address_orig
;
--
connection
node_2
--
source
include
/
start_mysqld
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
--
source
include
/
wait_condition
.
inc
--
connection
node_1
SET
GLOBAL
wsrep_provider_options
=
@
wsrep_provider_options_orig
;
# Restore original auto_increment_offset values.
--
source
include
/
auto_increment_offset_restore
.
inc
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment