Bug #83072 SET PERSIST seems to be still buggy

Submitted: 21 Sep 2016 8:16 Modified: 21 Sep 2016 9:21
Reporter: Oli Sennhauser Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Options Severity:S3 (Non-critical)
Version:8.0.0 OS:Linux
Assigned to: CPU Architecture:Any
Tags: mysqld-auto.cnf, set persist

[21 Sep 2016 8:16] Oli Sennhauser
Description:
SET PERSISTS does not work as described IMHO and behaves a bit random...

How to repeat:
mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 134217728 |
+-------------------------+-----------+

mysql> set persist innodb_buffer_pool_size=256*1024*1024;

mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 268435456 |
+-------------------------+-----------+

shell> cat mysqld-auto.cnf  ; echo ""
{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }

shell> restart

mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 134217728 |
+-------------------------+-----------+

mysql> set persist innodb_buffer_pool_size=256*1024*1024;

mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 268435456 |
+-------------------------+-----------+

shell> cat mysqld-auto.cnf 
{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }

Suggested fix:
I expect that the NEW value is persisted and survives a restart.

The values from mysqld-auto.cnf was:

{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }
{ "mysql_server": {"innodb_buffer_pool_size": "268435456" } }
{ "mysql_server": { } }
[21 Sep 2016 9:21] MySQL Verification Team
Hello Oli,

Thank you for the report.
This is most likely duplicate of Bug #82905.

Thanks,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.