Commit 9eedf9b4 authored by Luis Soares's avatar Luis Soares

BUG#12400313

Hardening the test case:
  - including a diff_tables at the end.
  - increasing the tolerance on the relay limit size.
parent 4a6c4d86
include/master-slave.inc include/master-slave.inc
[connection master] [connection master]
include/assert.inc [Assert that relay log space is close to the limit] include/assert.inc [Assert that relay log space is close to the limit]
include/diff_tables.inc [master:test.t1,slave:test.t1]
include/rpl_end.inc include/rpl_end.inc
...@@ -82,12 +82,16 @@ INSERT INTO t1 VALUES ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ...@@ -82,12 +82,16 @@ INSERT INTO t1 VALUES ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
--let $relay_log_space_while_sql_is_executing = query_get_value(SHOW SLAVE STATUS, Relay_Log_Space, 1) --let $relay_log_space_while_sql_is_executing = query_get_value(SHOW SLAVE STATUS, Relay_Log_Space, 1)
--let $relay_log_space_limit = query_get_value(SHOW VARIABLES LIKE "relay_log_space_limit", Value, 1) --let $relay_log_space_limit = query_get_value(SHOW VARIABLES LIKE "relay_log_space_limit", Value, 1)
--let $assert_text= Assert that relay log space is close to the limit --let $assert_text= Assert that relay log space is close to the limit
--let $assert_cond= $relay_log_space_while_sql_is_executing <= $relay_log_space_limit * 1.1 --let $assert_cond= $relay_log_space_while_sql_is_executing <= $relay_log_space_limit * 1.15
--source include/assert.inc --source include/assert.inc
# unlock the table and let SQL thread continue applying events # unlock the table and let SQL thread continue applying events
UNLOCK TABLES; UNLOCK TABLES;
--connection master
--let $diff_tables=master:test.t1,slave:test.t1
--source include/diff_tables.inc
--connection master --connection master
DROP TABLE t1; DROP TABLE t1;
--enable_query_log --enable_query_log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment