mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bug#11758979 - 51252: ARCHIVE TABLES STILL FAIL UNDER STRESS
TESTS: CRASH, CORRUPTION, 4G MEMOR Issue: Valgrind errors due to checksum and optimize query against archive tables with null columns. Table record buffer was not initialized. Solution: Initialize the record buffer.
This commit is contained in:
@ -12823,3 +12823,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 STILL FAIL UNDER STRESS
|
||||
# TESTS: CRASH, CORRUPTION, 4G MEMOR
|
||||
# (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;
|
||||
|
@ -1745,3 +1745,18 @@ INSERT INTO t1 SELECT t1.* FROM t1,t1 t2,t1 t3,t1 t4,t1 t5,t1 t6;
|
||||
SELECT * FROM t1 ORDER BY f LIMIT 1;
|
||||
DROP TABLE t1;
|
||||
SET sort_buffer_size=DEFAULT;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # BUG#11758979 - 51252: ARCHIVE TABLES STILL FAIL UNDER STRESS
|
||||
--echo # TESTS: CRASH, CORRUPTION, 4G MEMOR
|
||||
--echo # (to be executed with valgrind)
|
||||
CREATE TABLE t1(a BLOB, b VARCHAR(200)) ENGINE=ARCHIVE;
|
||||
INSERT INTO t1 VALUES(NULL, '');
|
||||
FLUSH TABLE t1;
|
||||
--echo # we need this select to workaround BUG#11764364
|
||||
SELECT * FROM t1;
|
||||
CHECKSUM TABLE t1 EXTENDED;
|
||||
FLUSH TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user