Bug #93270 PERSISTED_ONLY stmt set wrong path in variables_info with non-dynamic variable
Submitted: 21 Nov 2018 10:54 Modified: 10 May 6:02
Reporter: Ramesh Sivaraman (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[21 Nov 2018 10:54] Ramesh Sivaraman
Description:
PERSISTED_ONLY statement set the wrong path in variables_info with non-dynamic variables.

8.0.13>SET PERSIST_ONLY back_log=2;
Query OK, 0 rows affected (0.00 sec)

8.0.13>
8.0.13>SET PERSIST_ONLY innodb_log_file_size= 1024 * 1024 * 1024;
Query OK, 0 rows affected (0.00 sec)

8.0.13>

8.0.13>select VARIABLE_NAME,VARIABLE_SOURCE,VARIABLE_PATH from performance_schema.variables_info where variable_source='PERSISTED';
+-------------------------+-----------------+-------------------------------------------------------+
| VARIABLE_NAME           | VARIABLE_SOURCE | VARIABLE_PATH                                         |
+-------------------------+-----------------+-------------------------------------------------------+
| back_log                | PERSISTED       | /dev/shm/qa/ms80/data/mysqld-auto.cnf/mysqld-auto.cnf |
| innodb_buffer_pool_size | PERSISTED       | /dev/shm/qa/ms80/data/mysqld-auto.cnf                 |
| innodb_log_file_size    | PERSISTED       | /dev/shm/qa/ms80/data/mysqld-auto.cnf/mysqld-auto.cnf |
| innodb_undo_tablespaces | PERSISTED       | /dev/shm/qa/ms80/data/mysqld-auto.cnf                 |
| max_connections         | PERSISTED       | /dev/shm/qa/ms80/data/mysqld-auto.cnf                 |
+-------------------------+-----------------+-------------------------------------------------------+
5 rows in set (0.00 sec)

8.0.13>

How to repeat:
1) Change non-dynamic variables with the SET PERSIST_ONLY statement.

   SET PERSIST_ONLY innodb_log_file_size= 1024 * 1024 * 1024;

2) restart server

3) Check the non-dynamic variable info in performance_schema.variables_info table.

select VARIABLE_NAME,VARIABLE_SOURCE,VARIABLE_PATH from performance_schema.variables_info where variable_source='PERSISTED';
[21 Nov 2018 11:50] Umesh Shastry
Hello Ramesh,

Thank you for the report and feedback.

regards,
Umesh
[10 May 6:02] Erlend Dahl
Fixed in 8.0.14 under the heading of

Bug#28561584 PERSISTED VARIABLE PATH IS DISPLAYED INCORRECTLY IN VARIABLES_INFO TABLE