You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#29013375 - CONTRIBUTION BY FACEBOOK: STORE ALL_PERSISTED_VARIABLES.TEST COUNTERS IN VA ..
Description :
This diff changes all_persisted_variables.test to limit the number of
hardcoded values in the test output by putting them into local variables. New
patches that are then rebased on top which add new system variables do not
need to change as many lines of the original test case, making it easier on
the rebase process.
Also removed the entries for Bugs that were fixed and modified the queries
to included the server variables cthat were not tested due to open bugs.
Reviewed by:
Parakh Agarwal <parakh.agarwal@oracle.com>
RB: 21493
--let $assert_text= Expect $total_persistent_vars persisted variables in the table. Due to open Bugs, we are checking for $expected_total_persistent_vars
158
-
159
-
# Below are the persisted variables we are unable to test at the moment due to
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.persisted_variables, count, 1] = $expected_total_persistent_vars
152
+
--let $assert_text= Expect $total_persistent_vars persisted variables in the table.
153
+
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.persisted_variables, count, 1] = $total_persistent_vars
167
154
--source include/assert.inc
168
155
169
156
--echo
@@ -176,16 +163,16 @@ SET PERSIST innodb_monitor_reset_all="latch";
176
163
--source include/wait_until_connected_again.inc
177
164
178
165
--echo
179
-
--let $assert_text= Expect $expected_total_persistent_vars persisted variables in persisted_variables table.
180
-
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.persisted_variables, count, 1] = $expected_total_persistent_vars
166
+
--let $assert_text= Expect $total_persistent_vars persisted variables in persisted_variables table.
167
+
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.persisted_variables, count, 1] = $total_persistent_vars
181
168
--source include/assert.inc
182
169
183
-
--let $assert_text= Expect $expected_total_persistent_vars persisted variables shown as PERSISTED in variables_info table.
184
-
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.variables_info WHERE variable_source="PERSISTED", count, 1] = $expected_total_persistent_vars
170
+
--let $assert_text= Expect $total_persistent_vars persisted variables shown as PERSISTED in variables_info table.
171
+
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.variables_info WHERE variable_source="PERSISTED", count, 1] = $total_persistent_vars
185
172
--source include/assert.inc
186
173
187
-
--let $assert_text= Expect $expected_total_persistent_vars persisted variables with matching peristed and global values.
188
-
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.variables_info vi JOIN performance_schema.persisted_variables pv JOIN performance_schema.global_variables gv ON vi.variable_name=pv.variable_name AND vi.variable_name=gv.variable_name AND pv.variable_value=gv.variable_value WHERE vi.variable_source="PERSISTED", count, 1] = $expected_total_persistent_vars
174
+
--let $assert_text= Expect $total_persistent_vars persisted variables with matching peristed and global values.
175
+
--let $assert_cond= [SELECT COUNT(*) as count FROM performance_schema.variables_info vi JOIN performance_schema.persisted_variables pv JOIN performance_schema.global_variables gv ON vi.variable_name=pv.variable_name AND vi.variable_name=gv.variable_name AND pv.variable_value=gv.variable_value WHERE vi.variable_source="PERSISTED", count, 1] = $total_persistent_vars
0 commit comments