mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
BUG#11751793 - 42784: ARCHIVE TABLES CAUSE 100% CPU USAGE
AND HANG IN SHOW TABLE STATUS.
ISSUE: Table corruption due to concurrent queries.
Different threads running insert and check
query leads to table corruption. Not properly locked,
rows are inserted in between check query.
SOLUTION: In check query mutex lock is acquired
for a longer time to handle concurrent
insert and check query.
NOTE: Additionally we backported the fix for CHECKSUM
issue(bug#11758979).
This commit is contained in:
parent
9f9b5996f5
commit
a00f87bf15
3 changed files with 72 additions and 9 deletions
|
|
@ -12772,3 +12772,22 @@ a b c d e f
|
|||
-1 b c d e 1
|
||||
DROP TABLE t1;
|
||||
SET sort_buffer_size=DEFAULT;
|
||||
#
|
||||
# BUG#11758979 - 51252: ARCHIVE TABLES CAUSE 100% CPU USAGE
|
||||
# AND HANG IN SHOW TABLE STATUS
|
||||
# (to be executed with valgrind)
|
||||
CREATE TABLE t1(a BLOB, b VARCHAR(200)) ENGINE=ARCHIVE;
|
||||
INSERT INTO t1 VALUES(NULL, '');
|
||||
FLUSH TABLE t1;
|
||||
# we need this select to workaround BUG#11764364
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
NULL
|
||||
CHECKSUM TABLE t1 EXTENDED;
|
||||
Table Checksum
|
||||
test.t1 286155052
|
||||
FLUSH TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
DROP TABLE t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue