diff --git a/.github/workflows/docker-tests-8.0.yml b/.github/workflows/docker-tests-8.0.yml index a6749be0..c17449fa 100644 --- a/.github/workflows/docker-tests-8.0.yml +++ b/.github/workflows/docker-tests-8.0.yml @@ -58,6 +58,7 @@ jobs: - 'VERSION=8.0 GODOG_FEATURE=readonly_filesystem.feature make test' - 'VERSION=8.0 GODOG_FEATURE=recovery.feature make test' - 'VERSION=8.0 GODOG_FEATURE=repair.feature make test' + - 'VERSION=8.0 GODOG_FEATURE=repl_mon.feature make test' - 'VERSION=8.0 GODOG_FEATURE=statefile.feature make test' - 'VERSION=8.0 GODOG_FEATURE=switchover_from.feature make test' - 'VERSION=8.0 GODOG_FEATURE=switchover_to.feature make test' diff --git a/.github/workflows/docker-tests.yml b/.github/workflows/docker-tests.yml index 599b85c1..db70c05a 100644 --- a/.github/workflows/docker-tests.yml +++ b/.github/workflows/docker-tests.yml @@ -55,8 +55,9 @@ jobs: - 'GODOG_FEATURE=priority.feature make test' - 'GODOG_FEATURE=readonly_filesystem.feature make test' - 'GODOG_FEATURE=recovery.feature make test' - - 'GODOG_FEATURE=repair.feature make test' - - 'GODOG_FEATURE=statefile.feature make test' + - 'GODOG_FEATURE=repair.feature make test' + - 'GODOG_FEATURE=repl_mon.feature make test' + - 'GODOG_FEATURE=statefile.feature make test' - 'GODOG_FEATURE=switchover_from.feature make test' - 'GODOG_FEATURE=switchover_to.feature make test' - 'GODOG_FEATURE=zk_failure.feature make test' diff --git a/tests/features/async_setting.feature b/tests/features/async_setting.feature index b414d22a..cde86d9c 100644 --- a/tests/features/async_setting.feature +++ b/tests/features/async_setting.feature @@ -101,7 +101,7 @@ Feature: mysync async mode tests """ MYSYNC_SEMISYNC=false MYSYNC_ASYNC=true - ASYNC_ALLOWED_LAG=50 + ASYNC_ALLOWED_LAG=60 MYSYNC_REPLICATION_LAG_QUERY="SELECT UNIX_TIMESTAMP(CURRENT_TIMESTAMP(3)) - UNIX_TIMESTAMP(ts) AS Seconds_Behind_Master FROM mysql.mysync_repl_mon" MYSYNC_FAILOVER=true MYSYNC_FAILOVER_DELAY=0s @@ -135,16 +135,16 @@ Feature: mysync async mode tests And I run SQL on mysql host "mysql2" """ STOP REPLICA FOR CHANNEL ''; - CHANGE REPLICATION SOURCE TO SOURCE_DELAY = 60; + CHANGE REPLICATION SOURCE TO SOURCE_DELAY = 90; START REPLICA FOR CHANNEL ''; """ And I run SQL on mysql host "mysql3" """ STOP REPLICA FOR CHANNEL ''; - CHANGE REPLICATION SOURCE TO SOURCE_DELAY = 90; + CHANGE REPLICATION SOURCE TO SOURCE_DELAY = 120; START REPLICA FOR CHANNEL ''; """ - And I wait for "120" seconds + And I wait for "150" seconds And I run SQL on mysql host "mysql1" """ INSERT INTO mysql.test_table1 VALUES ("D"), ("E"), ("F") @@ -191,7 +191,7 @@ Feature: mysync async mode tests """ [{"val":"A,B,C"}] """ - And I wait for "120" seconds + And I wait for "150" seconds When I run SQL on mysql host "mysql3" """ SELECT GROUP_CONCAT(value) as val from (SELECT value from mysql.test_table1 order by value) as t diff --git a/tests/features/repl_mon.feature b/tests/features/repl_mon.feature index 725cf13c..d63949f5 100644 --- a/tests/features/repl_mon.feature +++ b/tests/features/repl_mon.feature @@ -26,6 +26,14 @@ Feature: repl_mon tests """ [{"res":1}] """ + And I run SQL on mysql host "mysql2" expecting error on number "1146" + """ + SELECT ts FROM mysql.mysync_repl_mon + """ + And I run SQL on mysql host "mysql3" expecting error on number "1146" + """ + SELECT ts FROM mysql.mysync_repl_mon + """ Scenario: repl_mon disabled Given cluster environment is @@ -54,4 +62,11 @@ Feature: repl_mon tests """ [{"res":0}] """ - + And I run SQL on mysql host "mysql2" expecting error on number "1146" + """ + SELECT ts FROM mysql.mysync_repl_mon + """ + And I run SQL on mysql host "mysql3" expecting error on number "1146" + """ + SELECT ts FROM mysql.mysync_repl_mon + """