[MDEV-10394] Innodb system table space corrupted Created: 2016-07-19 Updated: 2020-12-08 Resolved: 2016-10-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.13 |
| Fix Version/s: | 10.1.19 |
| Type: | Bug | Priority: | Major |
| Reporter: | KIM KYUNG NAM | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
SB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 10.1.19 | ||||||||||||||||
| Description |
|
We're use mariadb 10.1.13 as a main database of our system. Below is our error case : MariaDB shutdown with signal 6 when some query executes. (insert or update...) The error log is below.
We check out system innodb table space with innochecksum.
We hava ibdata1, ibdata2, ibdata3 and ibdata4 and results of innochecksum are same. We compiled mariadb with debug option and test under same enviroment.
So we export data from mariadb and import to new table space.
I can't find solution for it. I attached my.cnf. |
| Comments |
| Comment by Elena Stepanova [ 2016-07-19 ] | |||||||||||||||||||||||||||||||||||
|
First, could you please clarify the versions? In 'Affects version/s' you put 10.1.13, but your description starts with you using 10.1.3; and the error log is from 10.1.14. Further, when you say
what do you mean by that? Do you export/import one table only? Can you specify what exactly you did to import data to a new table space (how you made sure it's really new)? The error log insists you have something encrypted, but your has no sign of it. Are you using, or have you ever used, any encryption on this server? Thanks. | |||||||||||||||||||||||||||||||||||
| Comment by KIM KYUNG NAM [ 2016-07-19 ] | |||||||||||||||||||||||||||||||||||
|
>> First, could you please clarify the versions? In 'Affects version/s' you put 10.1.13, but your description starts with you using 10.1.3; and the error log is >> from 10.1.14. I mistyped. correct version is 10.1.13 and We tested with 10.1.13 and 10.1.14. >> Further, when you say >> what do you mean by that? Do you export/import one table only? Can you specify what exactly you did to import data to a new table space (how you made sure it's really new)? We reinstalled mariadb and export our database from test server and imported to new mariadb. >>The error log insists you have something encrypted, but your has no sign of it. Are you using, or have you ever used, any encryption on this server? No, I attaced my,cnf file. We don't use any encryption option. Finally, We downgraded mariadb version from 10.1.13 to 10.0.22 and DB doesn't crash any more under same test. Thanks. | |||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-19 ] | |||||||||||||||||||||||||||||||||||
|
Yes, it must be a 10.1-specific problem, since 10.0 does not have encryption, which is clearly involved here – somehow InnoDB (mis)interprets the data as being encrypted. When you just re-install MariaDB, the datadir is preserved, so unless you removed it (or InnoDB files from it) manually, it's possible that even after re-installation the server was still using the old (corrupted?) system table space. Do you have that data stored, by any chance? I mean the InnoDB files itself, not the data dump. | |||||||||||||||||||||||||||||||||||
| Comment by KIM KYUNG NAM [ 2016-07-19 ] | |||||||||||||||||||||||||||||||||||
|
>>When you just re-install MariaDB, the datadir is preserved, so unless you removed it (or InnoDB files from it) manually, it's >>possible that even after re-installation the server was still using the old (corrupted?) system table space. >>Do you have that data stored, by any chance? I mean the InnoDB files itself, not the data dump. When I reinstalled MariaDB, I changed datadir to another position. Our test is very simple. So we changed MariaDB 10.1.13 to 10.0.22 and do same test. Thanks | |||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-20 ] | |||||||||||||||||||||||||||||||||||
|
windfree, thanks for clarification. Would you be able to provide this data dump? You could upload it to our ftp.askmonty.org/private, this way only MariaDB developers will have access to it. | |||||||||||||||||||||||||||||||||||
| Comment by KIM KYUNG NAM [ 2016-07-20 ] | |||||||||||||||||||||||||||||||||||
|
Thanks for response. | |||||||||||||||||||||||||||||||||||
| Comment by KIM KYUNG NAM [ 2016-07-23 ] | |||||||||||||||||||||||||||||||||||
|
I can't real data because of our client's security policy. 1. create dababase . I wanna know the reason of this bug. | |||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-07-29 ] | |||||||||||||||||||||||||||||||||||
|
Mr. Kim, With the test scenario described above, are you also getting the InnoDB complaints and assertion failure which you had in the description? | |||||||||||||||||||||||||||||||||||
| Comment by KIM KYUNG NAM [ 2016-08-01 ] | |||||||||||||||||||||||||||||||||||
|
Yes, We also getting the InnoDB assertion failure error. In that case, server started sucessfuly while having innodb table space corruption. but the server crashed with followed error log as I mentioned. | |||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-08-01 ] | |||||||||||||||||||||||||||||||||||
|
Hi, Can you try with 10.1.16, there was some bad bugs on 10.1.13. | |||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-09-05 ] | |||||||||||||||||||||||||||||||||||
|
I got the same error on current 10.1. The difference is that instead of an assertion failure I'm getting SIGSEGV.
My scenario was simple, but time-consuming, so it will take some time to retry.
| |||||||||||||||||||||||||||||||||||
| Comment by Thomas Seifert [ 2016-10-19 ] | |||||||||||||||||||||||||||||||||||
|
I just got the same error after upgrading on ubuntu from 10.1.17+maria-1~trusty to 10.1.18+maria-1~trusty.
Anything I can provide to track down the issue and maybe solve this? | |||||||||||||||||||||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2016-10-29 ] | |||||||||||||||||||||||||||||||||||
|
commit bc323727de312b32e80ae9590e2346414746a594 Analysis: After we have read the page in buf_page_io_complete try to Fix: We still read key_version information from FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION |