File: thread_cache_size_functionality.result

package info (click to toggle)
percona-xtrabackup 2.2.3-2.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 293,260 kB
  • ctags: 146,881
  • sloc: cpp: 1,051,960; ansic: 570,217; java: 54,595; perl: 53,495; pascal: 44,194; sh: 27,826; yacc: 15,314; python: 12,142; xml: 7,848; sql: 4,125; makefile: 1,459; awk: 785; lex: 758
file content (158 lines) | stat: -rw-r--r-- 5,384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
'#________________________VAR_06_thread_cache_size__________________#'
echo '##'
--echo '#---------------------WL6372_VAR_6_01----------------------#'
####################################################################
#   Checking default value                                         #
####################################################################
SELECT COUNT(@@GLOBAL.thread_cache_size)
1 Expected
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_02----------------------#'
# Restart server with thread_cache_size 1
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
1
1 Expected
SET @@GLOBAL.thread_cache_size=DEFAULT;
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_03----------------------#'
SET @@local.thread_cache_size=1;
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
Expected error 'Global variable'
SET @@session.thread_cache_size=1;
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
Expected error 'Global variable'
SET @@GLOBAL.thread_cache_size=1;
SET @@GLOBAL.thread_cache_size=DEFAULT;
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_04----------------------#'
SELECT @@GLOBAL.thread_cache_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='thread_cache_size';
@@GLOBAL.thread_cache_size = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='thread_cache_size';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------WL6372_VAR_6_05----------------------#'
SELECT @@thread_cache_size = @@GLOBAL.thread_cache_size;
@@thread_cache_size = @@GLOBAL.thread_cache_size
1
1 Expected
SELECT COUNT(@@local.thread_cache_size);
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.thread_cache_size);
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT thread_cache_size = @@SESSION.thread_cache_size;
ERROR 42S22: Unknown column 'thread_cache_size' in 'field list'
Expected error 'Unknown column thread_cache_size in field list'
'#---------------------WL6372_VAR_6_06----------------------#'
SET @@GLOBAL.thread_cache_size=2;
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
set @@GLOBAL.thread_cache_size=DEFAULT;