Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 39f78cd

Browse files
committed
Bug#31968366 SET PERSIST FOR COMPONENTS GENERATES A FLOOD OF WARNINGS
Post push fixes, modified test case files. RB#26373
1 parent b5c584c commit 39f78cd

4 files changed

Lines changed: 9 additions & 10 deletions

‎mysql-test/r/persisted_variables_for_component.result‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ VARIABLE_NAME VARIABLE_VALUE
7070
INSTALL COMPONENT 'file://component_validate_password';
7171
SET @@persist.validate_password.length=10;
7272
SET @@persist.validate_password.check_user_name=OFF;
73-
SELECT * FROM performance_schema.persisted_variables;
74-
VARIABLE_NAME VARIABLE_VALUE
75-
validate_password.check_user_name OFF
76-
validate_password.length 10
73+
SELECT COUNT(*) FROM performance_schema.persisted_variables;
74+
COUNT(*)
75+
2
7776
UNINSTALL COMPONENT 'file://component_validate_password';
7877
INSTALL COMPONENT 'file://component_validate_password';
7978
SELECT COUNT(*) FROM performance_schema.error_log WHERE ERROR_CODE = "MY-013185";

‎mysql-test/r/read_only_persisted_plugin_variables.result‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,8 @@ count(*)
116116
# Restart server
117117
CALL mtr.add_suppression("Plugin audit_log reported *");
118118
# Both queries must return 101 rows.
119-
SELECT * FROM performance_schema.persisted_variables;
119+
SELECT * FROM performance_schema.persisted_variables ORDER BY VARIABLE_NAME;
120120
VARIABLE_NAME VARIABLE_VALUE
121-
replica_type_conversions
122-
innodb_log_buffer_size 16777216
123-
slave_type_conversions
124121
back_log 80
125122
binlog_gtid_simple_recovery ON
126123
disabled_storage_engines
@@ -141,6 +138,7 @@ innodb_ft_max_token_size 84
141138
innodb_ft_min_token_size 4
142139
innodb_ft_sort_pll_degree 2
143140
innodb_ft_total_cache_size 640000000
141+
innodb_log_buffer_size 16777216
144142
innodb_log_file_size 50331648
145143
innodb_log_files_in_group 2
146144
innodb_open_files 1
@@ -204,12 +202,14 @@ performance_schema_setup_objects_size -1
204202
performance_schema_users_size -1
205203
relay_log_recovery OFF
206204
relay_log_space_limit 0
205+
replica_type_conversions
207206
report_host
208207
report_password
209208
report_port 21000
210209
report_user
211210
skip_name_resolve OFF
212211
skip_show_database OFF
212+
slave_type_conversions
213213
table_open_cache_instances 16
214214
thread_handling one-thread-per-connection
215215
thread_stack 286720

‎mysql-test/t/persisted_variables_for_component.test‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ INSTALL COMPONENT 'file://component_validate_password';
9999
SET @@persist.validate_password.length=10;
100100
SET @@persist.validate_password.check_user_name=OFF;
101101
# return 2 rows
102-
SELECT * FROM performance_schema.persisted_variables;
102+
SELECT COUNT(*) FROM performance_schema.persisted_variables;
103103
UNINSTALL COMPONENT 'file://component_validate_password';
104104
INSTALL COMPONENT 'file://component_validate_password';
105105
# with fix should return 0 rows, without fix it will return 63 rows

‎mysql-test/t/read_only_persisted_plugin_variables.test‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SELECT count(*) from performance_schema.persisted_variables;
4848
CALL mtr.add_suppression("Plugin audit_log reported *");
4949

5050
--echo # Both queries must return 101 rows.
51-
SELECT * FROM performance_schema.persisted_variables;
51+
SELECT * FROM performance_schema.persisted_variables ORDER BY VARIABLE_NAME;
5252
SELECT VARIABLE_NAME FROM performance_schema.variables_info WHERE VARIABLE_SOURCE = 'PERSISTED';
5353

5454
RESET PERSIST;

0 commit comments

Comments
 (0)