-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MDEV-39795: Assertion `n_reserved > 0' failed #5356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mariadb-TafzeelShams
wants to merge
1
commit into
10.6
Choose a base branch
from
10.6-MDEV-39795
base: 10.6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
mysql-test/suite/encryption/r/innodb_encrypt_compression_algorithm.result
This file contains hidden or 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 @@ | ||
| # | ||
| # MDEV 39795 : Assertion `n_reserved > 0' failed | ||
| # | ||
| SET GLOBAL innodb_encrypt_tables = ON; | ||
| SET GLOBAL innodb_compression_algorithm = 'none'; | ||
| CREATE TABLE t1 ( | ||
| id INT AUTO_INCREMENT PRIMARY KEY, | ||
| col1 INT, | ||
| col2 INT, | ||
| col3 INT | ||
| ) ENGINE=InnoDB ROW_FORMAT = Compact PAGE_COMPRESSED=1; | ||
| INSERT INTO t1 (col1, col2, col3) VALUES (1, 10, 100); | ||
| FLUSH TABLES t1 FOR EXPORT; | ||
| # restart | ||
| ALTER TABLE t1 ADD INDEX idx_col1 (col1); | ||
| FLUSH TABLES t1 FOR EXPORT; | ||
| # restart | ||
| ALTER TABLE t1 ADD INDEX idx_col2_col3 (col2, col3); | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `col1` int(11) DEFAULT NULL, | ||
| `col2` int(11) DEFAULT NULL, | ||
| `col3` int(11) DEFAULT NULL, | ||
| PRIMARY KEY (`id`), | ||
| KEY `idx_col1` (`col1`), | ||
| KEY `idx_col2_col3` (`col2`,`col3`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPACT `PAGE_COMPRESSED`=1 | ||
| SELECT * FROM t1; | ||
| id col1 col2 col3 | ||
| 1 1 10 100 | ||
| # Cleanup | ||
| DROP TABLE t1; |
29 changes: 29 additions & 0 deletions
29
mysql-test/suite/encryption/t/innodb_encrypt_compression_algorithm.test
This file contains hidden or 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,29 @@ | ||
| -- source include/have_innodb.inc | ||
| -- source include/have_file_key_management_plugin.inc | ||
|
|
||
| --echo # | ||
| --echo # MDEV 39795 : Assertion `n_reserved > 0' failed | ||
| --echo # | ||
|
|
||
| SET GLOBAL innodb_encrypt_tables = ON; | ||
| SET GLOBAL innodb_compression_algorithm = 'none'; | ||
| CREATE TABLE t1 ( | ||
| id INT AUTO_INCREMENT PRIMARY KEY, | ||
| col1 INT, | ||
| col2 INT, | ||
| col3 INT | ||
| ) ENGINE=InnoDB ROW_FORMAT = Compact PAGE_COMPRESSED=1; | ||
| INSERT INTO t1 (col1, col2, col3) VALUES (1, 10, 100); | ||
| FLUSH TABLES t1 FOR EXPORT; | ||
|
|
||
| --source include/restart_mysqld.inc | ||
| ALTER TABLE t1 ADD INDEX idx_col1 (col1); | ||
| FLUSH TABLES t1 FOR EXPORT; | ||
|
|
||
| --source include/restart_mysqld.inc | ||
| ALTER TABLE t1 ADD INDEX idx_col2_col3 (col2, col3); | ||
| SHOW CREATE TABLE t1; | ||
| SELECT * FROM t1; | ||
|
|
||
| --echo # Cleanup | ||
| DROP TABLE t1; |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -918,6 +918,10 @@ my_error_innodb( | |
| case DB_CORRUPTION: | ||
| my_error(ER_NOT_KEYFILE, MYF(0), table); | ||
| break; | ||
| case DB_DECRYPTION_FAILED: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please test it without fixing page_compressed + encryption test case. |
||
| my_error(ER_GET_ERRMSG, MYF(0), error, | ||
| ut_strerr(error), "InnoDB"); | ||
| break; | ||
| case DB_TOO_BIG_RECORD: { | ||
| /* Note that in page0zip.ic page_zip_rec_needs_ext() rec_size | ||
| is limited to COMPRESSED_REC_MAX_DATA_SIZE (16K) or | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reserved = (*err == DB_SUCCESS);