-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug#21924224 POTENTIAL RUNNING OUT OF SPACE IN REDO
Problem: -------- The key issue is the margin calculation for foreground threads. If innodb_thread_concurrency = 0 (default), no margin for foreground threads are allocated. For small redo size and large write concurrency, concurrent threads loop and perform checkpoint to free redo space at mtr commit. If one of the mtrs is holding latch on the oldest modified page then checkpoint fails to create more space for redo and whole system hangs. It could also lead to redo overwrite eventually by repeated calls to checkpoint. Solution: --------- By current design we could avoid this scenario by reserving enough space for all running mtrs. However, currently it is not easy to arrive at correct foreground and background write concurrency and reserving too much space could have impact on existing use cases. We thus take the following approach to resolve the hang and reduce the possibility of redo overwrite. 1. Change innobase_log_file_size minimum value from 1M to 4M. This would need documentation change. 2. Correct length calculation log_margin_checkpoint_age() at mtr commit. 3. AT mtr commit if not enough free margin attempt to do checkpoint once and continue. 4. For write_always option don't overwrite redo log header with older lsn. Reviewed-by: Marko Makela <marko.makela@oracle.com> Reviewed-by: Pawel Olchawa <pawel.olchawa@oracle.com> RB: 10957
- Loading branch information
Debarun Banerjee
committed
Jan 6, 2016
1 parent
e47a639
commit 5c6c6ec
Showing
6 changed files
with
71 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters