Skip to content

Commit 1a15ecb

Browse files
author
Shivashankar Nagaraj
committed
Bug#14286343: MAIN.STATUS TEST FAILS SPORADICALLY WITH RESULT CONTENT MISMATCH ON PB2
Issue: ------ The test case "Ensure that SHOW STATUS only changes global status variables" expectation itself is wrong. Executing any query, including SHOW STATUS, WILL change the statistics of the server, and this WILL change the result of some status variables, global or per session. Expecting this behavior is un realistic, and trying to observe it in a test case is bound to fail. Fix: ---- Remove the test case "Ensure that SHOW STATUS only changes global status variables" Reviewed-by: Marc Alff <[email protected]> Reviewed-by: amit Bhattacharya <[email protected]> RB: 17930
1 parent 0dab691 commit 1a15ecb

File tree

2 files changed

+0
-47
lines changed

2 files changed

+0
-47
lines changed

mysql-test/r/status.result

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -164,30 +164,6 @@ SHOW SESSION STATUS LIKE 'Last_query_cost';
164164
Variable_name Value
165165
Last_query_cost 5.205912
166166
DROP TABLE t1;
167-
show status like 'com_show_status';
168-
Variable_name Value
169-
Com_show_status 3
170-
show status like 'hand%write%';
171-
Variable_name Value
172-
Handler_write 0
173-
show status like '%tmp%';
174-
Variable_name Value
175-
Created_tmp_disk_tables 0
176-
Created_tmp_files 0
177-
Created_tmp_tables 0
178-
show status like 'hand%write%';
179-
Variable_name Value
180-
Handler_write 0
181-
show status like '%tmp%';
182-
Variable_name Value
183-
Created_tmp_disk_tables 0
184-
Created_tmp_files 0
185-
Created_tmp_tables 0
186-
show status like 'com_show_status';
187-
Variable_name Value
188-
Com_show_status 8
189-
rnd_diff tmp_table_diff
190-
20 8
191167
flush status;
192168
show status like 'Com%function';
193169
Variable_name Value

mysql-test/t/status.test

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -260,29 +260,6 @@ SHOW SESSION STATUS LIKE 'Last_query_cost';
260260
DROP TABLE t1;
261261

262262

263-
# End of 5.0 tests
264-
265-
#
266-
# Ensure that SHOW STATUS only changes global status variables
267-
#
268-
269-
connect (con1,localhost,root,,);
270-
let $rnd_next = `show global status like 'handler_read_rnd_next'`;
271-
let $tmp_table = `show global status like 'Created_tmp_tables'`;
272-
show status like 'com_show_status';
273-
show status like 'hand%write%';
274-
show status like '%tmp%';
275-
show status like 'hand%write%';
276-
show status like '%tmp%';
277-
show status like 'com_show_status';
278-
let $rnd_next2 = `show global status like 'handler_read_rnd_next'`;
279-
let $tmp_table2 = `show global status like 'Created_tmp_tables'`;
280-
--disable_query_log
281-
eval select substring_index('$rnd_next2',0x9,-1)-substring_index('$rnd_next',0x9,-1) as rnd_diff, substring_index('$tmp_table2',0x9,-1)-substring_index('$tmp_table',0x9,-1) as tmp_table_diff;
282-
--enable_query_log
283-
disconnect con1;
284-
connection default;
285-
286263
#
287264
# Bug#30252 Com_create_function is not incremented.
288265
#

0 commit comments

Comments
 (0)