Skip to content

Commit 52ffe9a

Browse files
committed
Bug#30240381 Test ndb.apply_stored_grants fails occasionally (patch #3)
When shutting down a mysql server, the test must wait not just for clients to be disconnected, but for the server to shut down fully. Change-Id: Ieed9fa201d420cae4cae10a47ff4a42b0d19f09e
1 parent fe4d285 commit 52ffe9a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mysql-test/suite/ndb/r/apply_stored_grants.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
shutdown;
21
Connected to server1 as root
32
CREATE DATABASE auth_test_db;
43
USE auth_test_db;

mysql-test/suite/ndb/t/apply_stored_grants.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
--source suite/ndb/include/ndb_find_tools.inc
44

55
# The ACL statements here are similar to distributed_grants.test, but mysql
6-
# server 2 is shut down at the start of this test. When restarted, it applies
7-
# the whole snapshot stored in ndb_sql_metadata.
6+
# server 2 is shut down at the start of this test. When restarted, it will
7+
# apply the whole snapshot stored in ndb_sql_metadata.
88
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.2.1.expect
99
connect(mysqld2,127.0.0.1,root,,test,$MASTER_MYPORT1);
1010
connection mysqld2;
11-
shutdown;
12-
source include/wait_until_disconnected.inc;
1311
enable_reconnect;
12+
--shutdown_server 30
13+
1414
connection default;
1515
--echo Connected to server1 as root
1616

0 commit comments

Comments
 (0)