-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-11835: InnoDB: Failing assertion: free_slot != NULL on
restarting server with encryption and read-only buf0buf.cc: Temporary slots used in encryption was calculated by read_threads * write_threads. However, in read-only mode write_threads is zero. Correct way is to calculate (read_threads + write_threads) * max pending IO requests.
- Loading branch information
Jan Lindström
committed
Jan 19, 2017
1 parent
a146385
commit dc557ca
Showing
5 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Wait max 10 min for key encryption threads to encrypt all spaces | ||
# Success! | ||
# All done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--innodb-encrypt-tables=1 | ||
--innodb-encryption-threads=4 | ||
--innodb-tablespaces-encryption |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--source suite/encryption/include/have_file_key_management_plugin.inc | ||
--source include/have_innodb.inc | ||
--source include/not_embedded.inc | ||
|
||
--echo # Wait max 10 min for key encryption threads to encrypt all spaces | ||
let $cnt=600; | ||
while ($cnt) | ||
{ | ||
let $success=`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0`; | ||
if ($success) | ||
{ | ||
let $cnt=0; | ||
} | ||
if (!$success) | ||
{ | ||
real_sleep 1; | ||
dec $cnt; | ||
} | ||
} | ||
if (!$success) | ||
{ | ||
SELECT * FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION; | ||
SHOW STATUS LIKE 'innodb_encryption%'; | ||
-- die Timeout waiting for encryption threads | ||
} | ||
--echo # Success! | ||
|
||
# | ||
# MDEV-11835: InnoDB: Failing assertion: free_slot != NULL on | ||
# restarting server with encryption and read-only | ||
# | ||
--let $restart_parameters= --innodb-read-only=1 --innodb-encrypt-tables=1 | ||
--source include/restart_mysqld.inc | ||
--echo # All done |
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