[MDEV-13814] Extra logging when innodb_log_archive=ON ( [Note] InnoDB: Read redo log up to LSN=...) Created: 2017-09-15 Updated: 2020-08-25 Resolved: 2017-09-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - XtraDB |
| Affects Version/s: | 10.0.30, 10.1.22 |
| Fix Version/s: | 10.0.33, 10.1.27 |
| Type: | Bug | Priority: | Major |
| Reporter: | Claudio Nanni | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
A healthy running server prints the following messages, approximately every 16MB of redo log: 2017-09-10 13:56:21 140493990914816 [Note] InnoDB: Read redo log up to LSN=139157068288 No recovery is in progress, the server is receiving connections and properly working. innodb_log_archive=ON |
| Comments |
| Comment by Marko Mäkelä [ 2017-09-15 ] | |||||||||||||
|
The logging was changed in | |||||||||||||
| Comment by Marko Mäkelä [ 2017-09-22 ] | |||||||||||||
|
The preprocessor symbol UNIV_LOG_ARCHIVE is not defined in the 5.5 build. It is defined in the 10.0 XtraDB. | |||||||||||||
| Comment by Marko Mäkelä [ 2017-09-22 ] | |||||||||||||
|
I can repeat this on 10.0:
After the run, I can see the message in the var/log/mysqld.1.err during shutdown (which is clearly not part of the crash recovery):
| |||||||||||||
| Comment by Marko Mäkelä [ 2017-09-22 ] | |||||||||||||
|
The fix is simple: add a condition before the call that was introduced in
This is only needed for XtraDB, which calls this function outside crash recovery when innodb_log_archive=ON. InnoDB does not have that setting. |