Bug #54009 | Server crashes when data is selected from non backed up table for InnoDB plugin | ||
---|---|---|---|
Submitted: | 26 May 2010 22:26 | Modified: | 14 Dec 2010 20:10 |
Reporter: | Hema Sridharan | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB Plugin storage engine | Severity: | S2 (Serious) |
Version: | 5.1.48 | OS: | Linux |
Assigned to: | Marko Mäkelä | CPU Architecture: | Any |
Tags: | corruption crash |
[26 May 2010 22:26]
Hema Sridharan
[26 May 2010 22:29]
Hema Sridharan
The test file that reproduces crash is attached below
Attachment: innobackup_crash.test (application/test, text), 3.51 KiB.
[28 May 2010 7:43]
Sveta Smirnova
Thank you for the report. In my environment mysqld doesn't crash, but test fails with mysqltest: At line 90: query 'SELECT COUNT(*) FROM dbb.te1' succeeded - should have failed with errno 1146... both if run with innodb and with innodb_plugin. Please check if this shows problems with test or this is new bug.
[28 May 2010 20:54]
Hema Sridharan
Hi Sveta, I forgot to mention that multiple table spaces feature has to be enabled when --include option is used with innobackup. Please repeat the test with --innodb-file-per-table option enabled. You can create innobackup_crash-master.opt file, set --innodb-file-per-table=1 in it and then execute the test to reproduce the crash.
[29 May 2010 5:23]
Sveta Smirnova
Thank you for the feedback. Verified as described.
[8 Jun 2010 9:03]
Marko Mäkelä
I understood that MEB is separate from the MySQL server. If a piece of SQL crashes the MySQL server (mysqld), then that should be filed as a mysqld bug. Which MySQL server does this occur with? Were the data files restored from a backup?
[8 Jun 2010 9:55]
Pekka Lampio
This is not a bug in Innobackup or ibbackup. The procedure described above under "Description" is illegal use of Innobackup. So, this could be described as a user error. I think it is very difficult if not impossible to change Innobackup to perform the operation tried to achieve in this case. Even though a table is missing from a partial backup, the meta data for it is in the data dictionary which is included in any partial backup. Using partial backups is very dangerous and the users should be very careful with partial backups.
[8 Jun 2010 12:11]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110480
[8 Jun 2010 12:11]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110481
[8 Jun 2010 12:12]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110482
[8 Jun 2010 12:12]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110483
[8 Jun 2010 12:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110488
[8 Jun 2010 12:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/110489
[19 Jul 2010 14:38]
Bugs System
Pushed into 5.1.49 (revid:build@mysql.com-20100719143034-omcma40sblwmay3x) (version source revid:vasil.dimov@oracle.com-20100704071244-3lo4okzels3kvy1p) (merge vers: 5.1.49) (pib:16)
[23 Jul 2010 12:23]
Bugs System
Pushed into mysql-trunk 5.5.6-m3 (revid:alik@sun.com-20100723121820-jryu2fuw3pc53q9w) (version source revid:alik@sun.com-20100723121820-jryu2fuw3pc53q9w) (merge vers: 5.5.6-m3) (pib:18)
[23 Jul 2010 12:30]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100723121929-90e9zemk3jkr2ocy) (version source revid:alik@sun.com-20100723121827-3bsh51m5sj6g4oma) (pib:18)
[8 Sep 2010 16:01]
Mark Callaghan
Related bugs are: http://bugs.mysql.com/bug.php?id=54742 http://bugs.mysql.com/bug.php?id=56373
[14 Oct 2010 8:35]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.51-ndb-7.0.20 (revid:martin.skold@mysql.com-20101014082627-jrmy9xbfbtrebw3c) (version source revid:martin.skold@mysql.com-20101014082627-jrmy9xbfbtrebw3c) (merge vers: 5.1.51-ndb-7.0.20) (pib:21)
[14 Oct 2010 8:50]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.51-ndb-6.3.39 (revid:martin.skold@mysql.com-20101014083757-5qo48b86d69zjvzj) (version source revid:martin.skold@mysql.com-20101014083757-5qo48b86d69zjvzj) (merge vers: 5.1.51-ndb-6.3.39) (pib:21)
[14 Oct 2010 9:05]
Bugs System
Pushed into mysql-5.1-telco-6.2 5.1.51-ndb-6.2.19 (revid:martin.skold@mysql.com-20101014084420-y54ecj85j5we27oa) (version source revid:martin.skold@mysql.com-20101014084420-y54ecj85j5we27oa) (merge vers: 5.1.51-ndb-6.2.19) (pib:21)