Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Duplicate
-
10.6.5, 10.6.7, 10.6.8, 10.6.9, 10.6.10
-
None
-
CentOS 7
Description
When importing a dump created by mysqldump with default options meta-data like Rows and Avg_row_length are 0 and Data_length is 16 KB and indexes are not available anymore which leads to long running or locking queries. Only after executing an optimize table afterwards corrects this or whem using the option skip-disable-keys for creating dump.
In the following example the Data_length is always 16 KB, because of the small table:
Test Table
mysql -e 'CREATE DATABASE testdb;'
mysql testdb -e 'CREATE TABLE testtable ( id int, a int,PRIMARY KEY (id)) ENGINE=InnoDB;'
mysql testdb -e 'INSERT INTO testtable VALUES (1,2),(2,3),(3,4);'
Import with default dump
mysqldump testdb testtable > dump1.sql
mysql -e 'DROP DATABASE IF EXISTS testdb;CREATE DATABASE testdb;'
mysql testdb < dump1.sql
mysql testdb -e 'SHOW TABLE STATUS LIKE "testtable"\G'
Rows: 0
Avg_row_length: 0
Recreate Table
mysql testdb -e 'OPTIMIZE TABLE testtable;'
mysql testdb -e 'SHOW TABLE STATUS LIKE "testtable"\G'
Rows: 3
Avg_row_length: 5461
Import with dump without disabled keys
mysqldump --skip-disable-keys testdb testtable > dump2.sql
mysql -e 'DROP DATABASE IF EXISTS testdb;CREATE DATABASE testdb;'
mysql testdb < dump2.sql
mysql testdb -e 'SHOW TABLE STATUS LIKE "testtable"\G'
Rows: 3
Avg_row_length: 5461
Attachments
Issue Links
- duplicates
-
MDEV-28327 InnoDB persistent statistics fail to update after bulk insert
-
- Closed
-
- relates to
-
MDEV-515 innodb bulk insert
-
- Closed
-
-
MDEV-24621 In bulk insert, pre-sort and build indexes one page at a time
-
- Closed
-
-
MDEV-28327 InnoDB persistent statistics fail to update after bulk insert
-
- Closed
-
-
MDEV-30959 Import with disabled keys corrupts meta-data like rows, indexes, ...
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.6.7 [ 26812 ] |
Labels | CS0387305 |
Labels | CS0387305 |
Assignee | Alexander Barkov [ bar ] |
Fix Version/s | 10.6 [ 24028 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Attachment | metadata-test.txt [ 66238 ] |
Affects Version/s | 10.6.10 [ 28407 ] | |
Affects Version/s | 10.6.9 [ 27507 ] | |
Affects Version/s | 10.6.8 [ 27506 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Assignee | Alexander Barkov [ bar ] | Marko Mäkelä [ marko ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Link |
This issue duplicates |
Assignee | Marko Mäkelä [ marko ] | Alexander Barkov [ bar ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
issue.field.resolutiondate | 2022-11-11 13:37:44.0 | 2022-11-11 13:37:44.542 |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Attachment | metadata-test-1.txt [ 66907 ] |
Attachment | metadata-test2.txt [ 66908 ] |
Attachment | metadata-test-1.txt [ 66907 ] |
Link |
This issue relates to |
Zendesk Related Tickets | 199393 |
Same behaviour on 10.6.7