Bug #72420 | Unable to purge a record on temptable on startup. | ||
---|---|---|---|
Submitted: | 22 Apr 2014 10:47 | Modified: | 18 Apr 2016 12:56 |
Reporter: | Daniël van Eeden (OCA) | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.6.16 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | datadictionary, innodb |
[22 Apr 2014 10:47]
Daniël van Eeden
[30 Apr 2014 11:07]
Daniël van Eeden
It looks like the mentioned space doesn't exist, but the index does. space 891175 offset 7374 (238 records, index id 2163179) mysql> select * from INNODB_SYS_INDEXES where index_id=2163179; +----------+---------------+----------+------+----------+---------+--------+ | INDEX_ID | NAME | TABLE_ID | TYPE | N_FIELDS | PAGE_NO | SPACE | +----------+---------------+----------+------+----------+---------+--------+ | 2163179 | someindex | 892871 | 0 | 1 | 7 | 891175 | +----------+---------------+----------+------+----------+---------+--------+ 1 row in set (0.00 sec) mysql> SELECT * FROM INNODB_SYS_DATAFILES WHERE SPACE=891175; Empty set (0.00 sec) mysql> SELECT * FROM INNODB_SYS_TABLES WHERE SPACE=891175; +----------+---------------------------+------+--------+--------+-------------+------------+---------------+ | TABLE_ID | NAME | FLAG | N_COLS | SPACE | FILE_FORMAT | ROW_FORMAT | ZIP_PAGE_SIZE | +----------+---------------------------+------+--------+--------+-------------+------------+---------------+ | 892871 | somedb/sometable | 1 | 12 | 891175 | Antelope | Compact | 0 | +----------+---------------------------+------+--------+--------+-------------+------------+---------------+ 1 row in set (0.00 sec) The names of the database, index and table were replaced. An optimize table (to recreate the tablespace) worked without any issue. But then the old space number is still present in the buffer pool: mysql> select * from INNODB_SYS_INDEXES where index_id=2163179; Empty set (0.00 sec) mysql> select * from INNODB_SYS_TABLES WHERE SPACE=891175; Empty set (0.00 sec) SET GLOBAL innodb_buffer_pool_dump_now=ON; $ grep '891175,' ib_buffer_pool | wc -l 3938 mysql> SELECT PAGE_TYPE,COUNT(*) FROM INNODB_BUFFER_PAGE WHERE SPACE=891175 GROUP BY PAGE_TYPE; +-------------------+----------+ | PAGE_TYPE | COUNT(*) | +-------------------+----------+ | FILE_SPACE_HEADER | 1 | | IBUF_BITMAP | 1 | | INDEX | 3933 | | INODE | 1 | +-------------------+----------+ 4 rows in set (12.40 sec)
[30 Apr 2014 11:10]
Daniël van Eeden
Added tags
[29 Aug 2014 7:51]
MySQL Verification Team
zooming in on nailing this. see http://bugs.mysql.com/bug.php?id=73767
[18 Apr 2016 12:56]
Morgan Tocker
This appears to be a duplicate of BUG #73767. If you are still experiencing issues after upgrading, please feel free to re-open this bug report.