mysql test: test replication persists between slave stop / start cycle

This commit is contained in:
Graham Christensen 2017-04-25 17:53:48 -04:00
parent da0ef84c0c
commit 5dd731b801
No known key found for this signature in database
GPG Key ID: 06121D366FE9435C

View File

@ -64,5 +64,11 @@ in
$slave2->waitForUnit("mysql");
$slave2->waitForOpenPort(3306);
$slave2->succeed("echo 'use testdb; select * from tests' | mysql -u root -N | grep 4");
$slave2->succeed("systemctl stop mysql");
$master->succeed("echo 'insert into testdb.tests values (123, 456);' | mysql -u root -N");
$slave2->succeed("systemctl start mysql");
$slave2->waitForUnit("mysql");
$slave2->waitForOpenPort(3306);
$slave2->succeed("echo 'select * from testdb.tests where Id = 123;' | mysql -u root -N | grep 456");
'';
})