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
7f66fcc3
Commit
7f66fcc3
authored
Mar 27, 2017
by
Philip Stoev
Committed by
Jan Lindström
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Fortify galera_ist_restart_joiner.test - remove DDLs, fix sync point handling
parent
ea197c0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
27 deletions
+8
-27
mysql-test/suite/galera/r/galera_ist_restart_joiner.result
mysql-test/suite/galera/r/galera_ist_restart_joiner.result
+1
-11
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
+7
-16
No files found.
mysql-test/suite/galera/r/galera_ist_restart_joiner.result
View file @
7f66fcc3
...
@@ -4,15 +4,11 @@ Unloading wsrep provider ...
...
@@ -4,15 +4,11 @@ Unloading wsrep provider ...
SET GLOBAL wsrep_provider = 'none';
SET GLOBAL wsrep_provider = 'none';
UPDATE t1 SET f2 = 'b' WHERE f1 > 1;
UPDATE t1 SET f2 = 'b' WHERE f1 > 1;
UPDATE t1 SET f2 = 'c' WHERE f1 > 2;
UPDATE t1 SET f2 = 'c' WHERE f1 > 2;
SET GLOBAL wsrep_provider_options = 'dbug=d,recv_IST_after_apply_trx';
SET SESSION wsrep_sync_wait = 0;
Loading wsrep_provider ...
Loading wsrep_provider ...
SET SESSION wsrep_on=OFF;
SET SESSION wsrep_on=OFF;
SET SESSION wsrep_on=ON;
SET SESSION wsrep_on=ON;
UPDATE t1 SET f2 = 'd' WHERE f1 > 3;
UPDATE t1 SET f2 = 'd' WHERE f1 > 3;
CREATE TABLE t2 (f1 INTEGER);
UPDATE t1 SET f2 = 'e' WHERE f1 > 4;
UPDATE t1 SET f2 = 'e' WHERE f1 > 4;
CREATE TABLE t3 (f1 INTEGER);
Performing --wsrep-recover ...
Performing --wsrep-recover ...
Starting server ...
Starting server ...
Using --wsrep-start-position when starting mysqld ...
Using --wsrep-start-position when starting mysqld ...
...
@@ -33,10 +29,4 @@ f1 f2
...
@@ -33,10 +29,4 @@ f1 f2
4 d
4 d
5 e
5 e
6 f
6 f
SELECT COUNT(*) = 0 FROM t2;
DROP TABLE t1;
COUNT(*) = 0
1
SELECT COUNT(*) = 0 FROM t3;
COUNT(*) = 0
1
DROP TABLE t1, t2, t3;
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
View file @
7f66fcc3
...
@@ -31,13 +31,6 @@ UPDATE t1 SET f2 = 'b' WHERE f1 > 1;
...
@@ -31,13 +31,6 @@ UPDATE t1 SET f2 = 'b' WHERE f1 > 1;
UPDATE
t1
SET
f2
=
'c'
WHERE
f1
>
2
;
UPDATE
t1
SET
f2
=
'c'
WHERE
f1
>
2
;
--
connection
node_2
--
connection
node_2
# Make sure IST will block ...
--
let
$galera_sync_point
=
recv_IST_after_apply_trx
--
source
include
/
galera_set_sync_point
.
inc
SET
SESSION
wsrep_sync_wait
=
0
;
# Write file to make mysql-test-run.pl expect the crash, but don't start it
# Write file to make mysql-test-run.pl expect the crash, but don't start it
--
let
$_server_id
=
`SELECT @@server_id`
--
let
$_server_id
=
`SELECT @@server_id`
--
let
$_expect_file_name
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$_server_id
.
expect
--
let
$_expect_file_name
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
$_server_id
.
expect
...
@@ -51,19 +44,20 @@ SET SESSION wsrep_sync_wait = 0;
...
@@ -51,19 +44,20 @@ SET SESSION wsrep_sync_wait = 0;
# base_port setting is lost for some reason when unloading provider, so we need to restore it
# base_port setting is lost for some reason when unloading provider, so we need to restore it
--
eval
SET
GLOBAL
wsrep_provider_options
=
'base_port=$NODE_GALERAPORT_2'
;
--
eval
SET
GLOBAL
wsrep_provider_options
=
'base_port=$NODE_GALERAPORT_2'
;
--
eval
SET
GLOBAL
wsrep_provider
=
'$wsrep_provider_orig'
;
--
eval
SET
GLOBAL
wsrep_provider
=
'$wsrep_provider_orig'
;
# Make sure IST will block ...
--
let
$galera_sync_point
=
recv_IST_after_apply_trx
--
source
include
/
galera_set_sync_point
.
inc
--
eval
SET
GLOBAL
wsrep_cluster_address
=
'$wsrep_cluster_address_orig'
;
--
eval
SET
GLOBAL
wsrep_cluster_address
=
'$wsrep_cluster_address_orig'
;
--
enable_query_log
--
enable_query_log
SET
SESSION
wsrep_on
=
OFF
;
SET
SESSION
wsrep_on
=
OFF
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
''
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'
recv_IST_after_apply_trx
'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
;
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_on
=
ON
;
SET
SESSION
wsrep_on
=
ON
;
--
connection
node_1
--
connection
node_1
# Perform DML and DDL while IST is in progress
# Perform DML while IST is in progress
--
connection
node_1
UPDATE
t1
SET
f2
=
'd'
WHERE
f1
>
3
;
UPDATE
t1
SET
f2
=
'd'
WHERE
f1
>
3
;
CREATE
TABLE
t2
(
f1
INTEGER
);
# Kill node #2 while IST is in progress
# Kill node #2 while IST is in progress
--
connection
node_2
--
connection
node_2
...
@@ -86,9 +80,8 @@ EOF
...
@@ -86,9 +80,8 @@ EOF
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
# Perform DML
and DDL
while node #2 is down
# Perform DML while node #2 is down
UPDATE
t1
SET
f2
=
'e'
WHERE
f1
>
4
;
UPDATE
t1
SET
f2
=
'e'
WHERE
f1
>
4
;
CREATE
TABLE
t3
(
f1
INTEGER
);
--
connection
node_2
--
connection
node_2
...
@@ -107,11 +100,9 @@ SELECT * FROM t1;
...
@@ -107,11 +100,9 @@ SELECT * FROM t1;
--
connection
node_2
--
connection
node_2
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
SELECT
COUNT
(
*
)
=
0
FROM
t2
;
SELECT
COUNT
(
*
)
=
0
FROM
t3
;
--
connection
node_1
--
connection
node_1
DROP
TABLE
t1
,
t2
,
t3
;
DROP
TABLE
t1
;
# Restore original auto_increment_offset values.
# Restore original auto_increment_offset values.
--
source
include
/
auto_increment_offset_restore
.
inc
--
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