sjmudd, would you be happy with rate-limited output like this?
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1238777
|
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Read redo log up to LSN=1242112
|
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Starting log recovery batch of 12 pages
|
2017-03-07 14:58:57 4147463936 [Note] InnoDB: To recover: 12 pages from log
|
The first and third message would be output unconditionally, while the second and last message would only be output at most once per 15 seconds. The second message would be issued directly after completing redo log file I/O, while the last message would be issued at the end of recv_recover_page(), which is indirectly tied to data file I/O.
It would be tricky to add progress reporting to the page writes, so I would avoid it in the first cut.
On a related note, MDEV-10509 (another major source of InnoDB spam in MariaDB) should be addressed by implementing MariaDB progress reporting for ALTER TABLE…ALGORITHM=INPLACE.
sjmudd, would you be happy with rate-limited output like this?
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Starting crash recovery from checkpoint LSN=1238777
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Read redo log up to LSN=1242112
2017-03-07 14:58:57 4147463936 [Note] InnoDB: Starting log recovery batch of 12 pages
2017-03-07 14:58:57 4147463936 [Note] InnoDB: To recover: 12 pages from log
The first and third message would be output unconditionally, while the second and last message would only be output at most once per 15 seconds. The second message would be issued directly after completing redo log file I/O, while the last message would be issued at the end of recv_recover_page(), which is indirectly tied to data file I/O.
It would be tricky to add progress reporting to the page writes, so I would avoid it in the first cut.
On a related note,
MDEV-10509(another major source of InnoDB spam in MariaDB) should be addressed by implementing MariaDB progress reporting for ALTER TABLE…ALGORITHM=INPLACE.