innodb_log_block_size is not dynamic
Bug #1054090 reported by
Jay Janssen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
5.1 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
5.5 |
Fix Released
|
Medium
|
Hrvoje Matijakovic |
Bug Description
http://
states the variable is 'dynamic, but it clearly is not:
mysql> set global innodb_
ERROR 1238 (HY000): Variable 'innodb_
Also, does this either break backwards compatibility or require a fresh set logs? If so, it should be documented as such
Related branches
lp:~hrvojem/percona-server/bug1054090-5.1
- Alexey Kopytov (community): Approve
-
Diff: 17 lines (+2/-2)1 file modifieddoc/source/scalability/innodb_io.rst (+2/-2)
lp:~hrvojem/percona-server/bug1054090-5.5-t2
- Alexey Kopytov (community): Approve
-
Diff: 26 lines (+2/-3)1 file modifieddoc/source/scalability/innodb_io_55.rst (+2/-3)
To post a comment you must log in.
A fresh pair of logs is needed for the variable 'innodb_ log_block_ size' to be changed, which means a clean restart and removal of the old logs.
Here is how I tested it:
[root@ovaistari q-net mysql-test]# ./mtr --start-and-exit
Logging: ./mtr --start-and-exit
120922 13:38:24 [Note] Flashcache bypass: disabled
120922 13:38:24 [Note] Flashcache setup error is : ioctl failed
120922 13:38:24 [Note] Plugin 'FEDERATED' is disabled. vars,binlog, federated, rpl,innodb, perfschema percona- server/ 5.5.23- 25.3/Percona- Server/ mysql-test/ var sources/ percona- server/ 5.5.23- 25.3/Percona- Server/ mysql-test/ var'...
MySQL Version 5.5.23
Checking supported features...
- skipping ndbcluster
- SSL connections supported
Using suites: main,sys_
Collecting tests...
vardir: /work/sources/
Removing old var directory...
Creating var directory '/work/
Installing system database...
Using server port 59141
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
TEST RESULT TIME (ms) or COMMENT ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
-------
worker[1] - 'localhost:13000' was not free percona- server/ 5.5.23- 25.3/Percona- Server/ mysql-test/ var/tmp/ mysqld. 1.sock
worker[1] Using MTR_BUILD_THREAD 301, with reserved ports 13010..13019
worker[1] mysql-test-run: WARNING: running this script as _root_ will cause some tests to be skipped
worker[1]
Started [mysqld.1 - pid: 10340, winpid: 10340]
worker[1] Using config for test main.1st
worker[1] Port and socket path for server(s):
worker[1] mysqld.1 13010 /work/sources/
worker[1] Server(s) started, not waiting for them to finish
[root@ovaistari q-net mysql-test]# ../client/mysql -S ./var/tmp/ mysqld. 1.sock
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.23-rel25.3-log Percona Server with XtraDB (GPL), Release rel25.3, Revision 240
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select @@innodb_ log_block_ size; ------- ------- -----+ log_block_ size | ------- ------- -----+ ------- ------- -----+
+------
| @@innodb_
+------
| 512 |
+------
1 row in set (0.00 sec)
mysql> set global innodb_ log_block_ size=4* 1024; log_block_ size' is a read only variable
ERROR 1238 (HY000): Variable 'innodb_
mysql> Bye
[root@ovaistari q-net mysql-test]# vim ./var/my.cnf log_block_ size=4096
innodb_
[root@ovaistari q-net mysql-test]# ../client/ mysqladmin -S ./var/tmp/ mysqld. 1.sock shutdown percona- server/ 5.5.23- 25.3/Percona- Server/ sql/mysqld: Normal shutdown
120922 13:58:31 [Note] /work/sources/
120922 13:58:31 [Note] Event Scheduler: Purging the queue. 0 events percona- server/ 5.5.23- 25.3/Percona- Server/ sql/mysqld: Shutdown complete
120922 13:58:32 InnoDB: Starting shutdown...
120922 13:58:35 InnoDB: Shutdown completed; log sequence number 12599894
120922 13:58:35 [Note] /work/sources/
[root@ovaistari q-net mysql-test]# /work/sources/ percona- server/ 5.5.2.. .