1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge of fix for bug 43383 into actual tree

This commit is contained in:
Matthias Leich
2009-03-30 15:36:10 +02:00
3 changed files with 65 additions and 27 deletions

View File

@ -1,20 +1,20 @@
set session transaction_prealloc_size=1024*1024*1024*1; SET SESSION transaction_prealloc_size=1024*1024*1024*1;
show processlist; SHOW PROCESSLIST;
Id User Host db Command Time State Info Id User Host db Command Time State Info
1 root localhost test Query 0 NULL show processlist <Id> root localhost test Query <Time> NULL SHOW PROCESSLIST
set session transaction_prealloc_size=1024*1024*1024*2; SET SESSION transaction_prealloc_size=1024*1024*1024*2;
show processlist; SHOW PROCESSLIST;
Id User Host db Command Time State Info Id User Host db Command Time State Info
1 root localhost test Query 0 NULL show processlist <Id> root localhost test Query <Time> NULL SHOW PROCESSLIST
set session transaction_prealloc_size=1024*1024*1024*3; SET SESSION transaction_prealloc_size=1024*1024*1024*3;
show processlist; SHOW PROCESSLIST;
Id User Host db Command Time State Info Id User Host db Command Time State Info
1 root localhost test Query 0 NULL show processlist <Id> root localhost test Query <Time> NULL SHOW PROCESSLIST
set session transaction_prealloc_size=1024*1024*1024*4; SET SESSION transaction_prealloc_size=1024*1024*1024*4;
show processlist; SHOW PROCESSLIST;
Id User Host db Command Time State Info Id User Host db Command Time State Info
1 root localhost test Query 0 NULL show processlist <Id> root localhost test Query <Time> NULL SHOW PROCESSLIST
set session transaction_prealloc_size=1024*1024*1024*5; SET SESSION transaction_prealloc_size=1024*1024*1024*5;
show processlist; SHOW PROCESSLIST;
Id User Host db Command Time State Info Id User Host db Command Time State Info
1 root localhost test Query 0 NULL show processlist <Id> root localhost test Query <Time> NULL SHOW PROCESSLIST

View File

@ -10,4 +10,7 @@
# #
############################################################################## ##############################################################################
ndb_trig_1011ext: Bug#32656 NDB: Duplicate key error aborts transaction in handler. Doesn't talk back to SQL ndb_trig_1011ext: Bug#32656 NDB: Duplicate key error aborts transaction in handler. Doesn't talk back to SQL
charset_collation_1: Bug#38346, Bug#40209, Bug#40545, Bug#40618
charset_collation_2: Bug#38346, Bug#40209, Bug#40545, Bug#40618
charset_collation_3: Bug#38346, Bug#40209, Bug#40545, Bug#40618

View File

@ -5,16 +5,51 @@
--source include/big_test.inc --source include/big_test.inc
# #
# Bug #27322 failure to allocate transaction_prealloc_size causes crash # Bug#27322 failure to allocate transaction_prealloc_size causes crash
#
#
# Manual (6.0):
# Platform Bit Size Range Default
# 32 1024-4294967295 (4 Gi - 1) 4096
# 64 1024-18446744073709547520 4096
#
# Observation(mleich):
# 1. - Linux 64 Bit, MySQL 64 Bit, 4 GiB RAM, 8 GiB swap
# - SET SESSION transaction_prealloc_size=1099511627776;
# SHOW PROCESSLIST;
# Id User ... Info
# <Id> root ... SHOW PROCESSLIST
# SELECT @@session.transaction_prealloc_size;
# @@session.transaction_prealloc_size
# 1099511627776
# very short runtime in 5.0
# excessive resource consumption + long runtime in 5.1 and 6.0
# 2. - Win in VM, slightly older version of this test, MySQL 5.0
# - testcase timeout after 900s
# analyze-timeout-mysqld.1.err :
# Id User ... Time Info
# 83 root ... 542 set session transaction_prealloc_size=1024*1024*1024*2
# 84 root ... 1 SHOW PROCESSLIST
#
# There is a significant probablitity that this tests fails with testcase
# timeout if the testing box is not powerful enough.
# #
set session transaction_prealloc_size=1024*1024*1024*1; --disable_warnings
show processlist; SET SESSION transaction_prealloc_size=1024*1024*1024*1;
set session transaction_prealloc_size=1024*1024*1024*2; --replace_column 1 <Id> 6 <Time>
show processlist; SHOW PROCESSLIST;
set session transaction_prealloc_size=1024*1024*1024*3; SET SESSION transaction_prealloc_size=1024*1024*1024*2;
show processlist; --replace_column 1 <Id> 6 <Time>
set session transaction_prealloc_size=1024*1024*1024*4; SHOW PROCESSLIST;
show processlist; SET SESSION transaction_prealloc_size=1024*1024*1024*3;
set session transaction_prealloc_size=1024*1024*1024*5; --replace_column 1 <Id> 6 <Time>
show processlist; SHOW PROCESSLIST;
SET SESSION transaction_prealloc_size=1024*1024*1024*4;
--replace_column 1 <Id> 6 <Time>
SHOW PROCESSLIST;
SET SESSION transaction_prealloc_size=1024*1024*1024*5;
--replace_column 1 <Id> 6 <Time>
SHOW PROCESSLIST;
--enable_warnings