Commit 04b1eeb1 authored by Sneha Modi's avatar Sneha Modi

Bug#11748572:ALLOCATING A LARGE QUERY CACHE IS NOT DETERMINISTIC

Setting query_cache_size to larger values might fail depending on the memory 
pressure being put on the system. This can be seen on pushbuild as the test 
case query_cache_size_basic tries to allocate a +3GB query cache, which 
succeeds in some machines and fails in others.

So this part of the code where the test case tries to allocate +3GB query cache has been 
disabled for now to get the test running on pb2.
parent 5f3d3cdb
...@@ -24,4 +24,6 @@ sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wai ...@@ -24,4 +24,6 @@ sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wai
sys_vars.ndb_log_update_as_write_basic sys_vars.ndb_log_update_as_write_basic
sys_vars.have_ndbcluster_basic sys_vars.have_ndbcluster_basic
sys_vars.ndb_log_updated_only_basic sys_vars.ndb_log_updated_only_basic
sys_vars.query_cache_size_basic_64 # Bug#11748572 - 36747: ALLOCATING A LARGE QUERY CACHE IS NOT DETERMINISTIC
sys_vars.query_cache_size_basic_32 # Bug#11748572 - 36747: ALLOCATING A LARGE QUERY CACHE IS NOT DETERMINISTIC
sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5 sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5
...@@ -80,8 +80,13 @@ SELECT @@global.query_cache_size; ...@@ -80,8 +80,13 @@ SELECT @@global.query_cache_size;
SET @@global.query_cache_size = -1; SET @@global.query_cache_size = -1;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
SET @@global.query_cache_size = 4294967296;
SELECT @@global.query_cache_size; #
# Bug 11748572 - 36747: ALLOCATING A LARGE QUERY CACHE IS NOT DETERMINISTIC
#
# SET @@global.query_cache_size = 4294967296;
# SELECT @@global.query_cache_size;
SET @@global.query_cache_size = 511; SET @@global.query_cache_size = 511;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
--Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
......
SET @start_value = @@global.query_cache_size; SET @start_value = @@global.query_cache_size;
'#--------------------FN_DYNVARS_133_01------------------------#' '#--------------------FN_DYNVARS_133_01------------------------#'
SET @@global.query_cache_size = 99; SET @@global.query_cache_size = 99;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '99'
SET @@global.query_cache_size = DEFAULT; SET @@global.query_cache_size = DEFAULT;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
...@@ -16,10 +18,14 @@ SELECT @@global.query_cache_size; ...@@ -16,10 +18,14 @@ SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 1; SET @@global.query_cache_size = 1;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 512; SET @@global.query_cache_size = 512;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '512'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -29,13 +35,13 @@ Warning 1282 Query cache failed to set size 1024; new query cache size is 0 ...@@ -29,13 +35,13 @@ Warning 1282 Query cache failed to set size 1024; new query cache size is 0
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
: 'Bug#34880: Warnings are coming on assinging valid values to variable
'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
SET @@global.query_cache_size = 1048576; SET @@global.query_cache_size = 1048576;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
1048576 1048576
SET @@global.query_cache_size = 1048575; SET @@global.query_cache_size = 1048575;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1048575'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
1047552 1047552
...@@ -46,14 +52,9 @@ Warning 1292 Truncated incorrect query_cache_size value: '-1' ...@@ -46,14 +52,9 @@ Warning 1292 Truncated incorrect query_cache_size value: '-1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 4294967296;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '4294967296'
Warning 1282 Query cache failed to set size 4294966272; new query cache size is 0
SELECT @@global.query_cache_size;
@@global.query_cache_size
0
SET @@global.query_cache_size = 511; SET @@global.query_cache_size = 511;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '511'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -75,7 +76,6 @@ Warning 1282 Query cache failed to set size 4294966272; new query cache size is ...@@ -75,7 +76,6 @@ Warning 1282 Query cache failed to set size 4294966272; new query cache size is
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.query_cache_size = ON; SET @@global.query_cache_size = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_size' ERROR 42000: Incorrect argument type to variable 'query_cache_size'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
...@@ -105,6 +105,8 @@ WHERE VARIABLE_NAME='query_cache_size'; ...@@ -105,6 +105,8 @@ WHERE VARIABLE_NAME='query_cache_size';
1 1
'#---------------------FN_DYNVARS_133_07----------------------#' '#---------------------FN_DYNVARS_133_07----------------------#'
SET @@global.query_cache_size = TRUE; SET @@global.query_cache_size = TRUE;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -114,6 +116,8 @@ SELECT @@global.query_cache_size; ...@@ -114,6 +116,8 @@ SELECT @@global.query_cache_size;
0 0
'#---------------------FN_DYNVARS_133_08----------------------#' '#---------------------FN_DYNVARS_133_08----------------------#'
SET @@global.query_cache_size = 1; SET @@global.query_cache_size = 1;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@query_cache_size = @@global.query_cache_size; SELECT @@query_cache_size = @@global.query_cache_size;
@@query_cache_size = @@global.query_cache_size @@query_cache_size = @@global.query_cache_size
1 1
......
SET @start_value = @@global.query_cache_size; SET @start_value = @@global.query_cache_size;
'#--------------------FN_DYNVARS_133_01------------------------#' '#--------------------FN_DYNVARS_133_01------------------------#'
SET @@global.query_cache_size = 99; SET @@global.query_cache_size = 99;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '99'
SET @@global.query_cache_size = DEFAULT; SET @@global.query_cache_size = DEFAULT;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
...@@ -16,10 +18,14 @@ SELECT @@global.query_cache_size; ...@@ -16,10 +18,14 @@ SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 1; SET @@global.query_cache_size = 1;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 512; SET @@global.query_cache_size = 512;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '512'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -29,13 +35,13 @@ Warning 1282 Query cache failed to set size 1024; new query cache size is 0 ...@@ -29,13 +35,13 @@ Warning 1282 Query cache failed to set size 1024; new query cache size is 0
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
: 'Bug#34880: Warnings are coming on assinging valid values to variable
'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
SET @@global.query_cache_size = 1048576; SET @@global.query_cache_size = 1048576;
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
1048576 1048576
SET @@global.query_cache_size = 1048575; SET @@global.query_cache_size = 1048575;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1048575'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
1047552 1047552
...@@ -46,11 +52,9 @@ Warning 1292 Truncated incorrect query_cache_size value: '-1' ...@@ -46,11 +52,9 @@ Warning 1292 Truncated incorrect query_cache_size value: '-1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
SET @@global.query_cache_size = 4294967296;
SELECT @@global.query_cache_size;
@@global.query_cache_size
4294967296
SET @@global.query_cache_size = 511; SET @@global.query_cache_size = 511;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '511'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -67,11 +71,11 @@ SELECT @@global.query_cache_size; ...@@ -67,11 +71,11 @@ SELECT @@global.query_cache_size;
0 0
SET @@global.query_cache_size = 42949672950; SET @@global.query_cache_size = 42949672950;
Warnings: Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '42949672950'
Warning 1282 Query cache failed to set size 42949671936; new query cache size is 0 Warning 1282 Query cache failed to set size 42949671936; new query cache size is 0
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.query_cache_size = ON; SET @@global.query_cache_size = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_size' ERROR 42000: Incorrect argument type to variable 'query_cache_size'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
...@@ -101,6 +105,8 @@ WHERE VARIABLE_NAME='query_cache_size'; ...@@ -101,6 +105,8 @@ WHERE VARIABLE_NAME='query_cache_size';
1 1
'#---------------------FN_DYNVARS_133_07----------------------#' '#---------------------FN_DYNVARS_133_07----------------------#'
SET @@global.query_cache_size = TRUE; SET @@global.query_cache_size = TRUE;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@global.query_cache_size; SELECT @@global.query_cache_size;
@@global.query_cache_size @@global.query_cache_size
0 0
...@@ -110,6 +116,8 @@ SELECT @@global.query_cache_size; ...@@ -110,6 +116,8 @@ SELECT @@global.query_cache_size;
0 0
'#---------------------FN_DYNVARS_133_08----------------------#' '#---------------------FN_DYNVARS_133_08----------------------#'
SET @@global.query_cache_size = 1; SET @@global.query_cache_size = 1;
Warnings:
Warning 1292 Truncated incorrect query_cache_size value: '1'
SELECT @@query_cache_size = @@global.query_cache_size; SELECT @@query_cache_size = @@global.query_cache_size;
@@query_cache_size = @@global.query_cache_size @@query_cache_size = @@global.query_cache_size
1 1
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# Do not use any TAB characters for whitespace. # Do not use any TAB characters for whitespace.
# #
############################################################################## ##############################################################################
query_cache_size_basic_32 : Bug#11748572: Allocating a large query cache is not deterministic
query_cache_size_basic_64 : Bug#11748572: Allocating a large query cache is not deterministic
transaction_prealloc_size_basic_32 : Bug#11748572 transaction_prealloc_size_basic_32 : Bug#11748572
transaction_prealloc_size_basic_64 : Bug#11748572 transaction_prealloc_size_basic_64 : Bug#11748572
#thread_cache_size_func : Bug#11750172: 2008-11-07 joro main.thread_cache_size_func fails in pushbuild when run with pool of threads #thread_cache_size_func : Bug#11750172: 2008-11-07 joro main.thread_cache_size_func fails in pushbuild when run with pool of threads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment