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
93dc3e26
Commit
93dc3e26
authored
Feb 13, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21488 : Galera test sporadic failure on galera.galera_var_notify_cmd
Add wait condition and cleanup.
parent
ed10a8cd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
26 deletions
+19
-26
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-1
mysql-test/suite/galera/r/galera_var_notify_cmd.result
mysql-test/suite/galera/r/galera_var_notify_cmd.result
+8
-8
mysql-test/suite/galera/t/galera_var_notify_cmd-master.opt
mysql-test/suite/galera/t/galera_var_notify_cmd-master.opt
+1
-0
mysql-test/suite/galera/t/galera_var_notify_cmd.cnf
mysql-test/suite/galera/t/galera_var_notify_cmd.cnf
+0
-13
mysql-test/suite/galera/t/galera_var_notify_cmd.test
mysql-test/suite/galera/t/galera_var_notify_cmd.test
+10
-4
No files found.
mysql-test/suite/galera/disabled.def
View file @
93dc3e26
...
@@ -30,7 +30,6 @@ galera_sst_mariabackup_encrypt_with_key : MDEV-21484 galera_sst_mariabackup_encr
...
@@ -30,7 +30,6 @@ galera_sst_mariabackup_encrypt_with_key : MDEV-21484 galera_sst_mariabackup_encr
galera_sst_mariabackup_table_options: MDEV-19741 Galera test failure on galera.galera_sst_mariabackup_table_options
galera_sst_mariabackup_table_options: MDEV-19741 Galera test failure on galera.galera_sst_mariabackup_table_options
galera_var_innodb_disallow_writes : MDEV-20928 galera.galera_var_innodb_disallow_writes
galera_var_innodb_disallow_writes : MDEV-20928 galera.galera_var_innodb_disallow_writes
galera_var_node_address : MDEV-20485 Galera test failure
galera_var_node_address : MDEV-20485 Galera test failure
galera_var_notify_cmd : MDEV-21488 galera.galera_var_notify_cmd
galera_wan : MDEV-17259 Test failure on galera.galera_wan
galera_wan : MDEV-17259 Test failure on galera.galera_wan
mysql-wsrep#33 : MDEV-21420 galera.mysql-wsrep#33
mysql-wsrep#33 : MDEV-21420 galera.mysql-wsrep#33
partition : MDEV-19958 Galera test failure on galera.partition
partition : MDEV-19958 Galera test failure on galera.partition
...
...
mysql-test/suite/galera/r/galera_var_notify_cmd.result
View file @
93dc3e26
connection node_1;
connection node_1;
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(DISTINCT uuid) AS EXPECT_2 FROM mtr_wsrep_notify.membership;
SELECT COUNT(DISTINCT uuid) FROM mtr_wsrep_notify.membership;
EXPECT_2
COUNT(DISTINCT uuid)
2
2
SELECT MAX(size) FROM mtr_wsrep_notify.status;
SELECT MAX(size)
AS EXPECT_2
FROM mtr_wsrep_notify.status;
MAX(size)
EXPECT_2
2
2
SELECT COUNT(DISTINCT idx) FROM mtr_wsrep_notify.status;
SELECT COUNT(DISTINCT idx) AS EXPECT_2 FROM mtr_wsrep_notify.status;
COUNT(DISTINCT idx)
EXPECT_2
1
2
DROP SCHEMA mtr_wsrep_notify;
mysql-test/suite/galera/t/galera_var_notify_cmd-master.opt
0 → 100644
View file @
93dc3e26
--wsrep_notify_cmd=$MYSQL_TEST_DIR/std_data/wsrep_notify.sh --wsrep-sync-wait=0
mysql-test/suite/galera/t/galera_var_notify_cmd.cnf
deleted
100644 → 0
View file @
ed10a8cd
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep_notify_cmd=$MYSQL_TEST_DIR/std_data/wsrep_notify.sh
wsrep-sync-wait=0
[mysqld.2]
mysql-test/suite/galera/t/galera_var_notify_cmd.test
View file @
93dc3e26
...
@@ -4,9 +4,15 @@
...
@@ -4,9 +4,15 @@
#
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
galera_cluster
.
inc
--
source
include
/
force_restart
.
inc
--
connection
node_1
--
connection
node_1
SET
SESSION
wsrep_sync_wait
=
15
;
--
let
$wait_condition
=
SELECT
COUNT
(
DISTINCT
uuid
)
=
2
FROM
mtr_wsrep_notify
.
membership
;
SELECT
COUNT
(
DISTINCT
uuid
)
FROM
mtr_wsrep_notify
.
membership
;
--
source
include
/
wait_condition
.
inc
SELECT
MAX
(
size
)
FROM
mtr_wsrep_notify
.
status
;
SELECT
COUNT
(
DISTINCT
idx
)
FROM
mtr_wsrep_notify
.
status
;
SELECT
COUNT
(
DISTINCT
uuid
)
AS
EXPECT_2
FROM
mtr_wsrep_notify
.
membership
;
SELECT
MAX
(
size
)
AS
EXPECT_2
FROM
mtr_wsrep_notify
.
status
;
SELECT
COUNT
(
DISTINCT
idx
)
AS
EXPECT_2
FROM
mtr_wsrep_notify
.
status
;
# CLEANUP
DROP
SCHEMA
mtr_wsrep_notify
;
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