Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1e7fed72
Commit
1e7fed72
authored
Mar 04, 2021
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtr: perfschema.socket_{connect,instances_func} "Expect X"
Match test output with what it is testing.
parent
d2dce1c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
mysql-test/suite/perfschema/r/socket_connect.result
mysql-test/suite/perfschema/r/socket_connect.result
+4
-4
mysql-test/suite/perfschema/r/socket_instances_func.result
mysql-test/suite/perfschema/r/socket_instances_func.result
+6
-6
mysql-test/suite/perfschema/t/socket_connect.test
mysql-test/suite/perfschema/t/socket_connect.test
+4
-4
mysql-test/suite/perfschema/t/socket_instances_func.test
mysql-test/suite/perfschema/t/socket_instances_func.test
+3
-3
No files found.
mysql-test/suite/perfschema/r/socket_connect.result
View file @
1e7fed72
...
...
@@ -135,21 +135,21 @@ connection default;
#
# 4.1 Verify that there are two TCP/IP connections in the socket instance table
#
SELECT COUNT(*) = 2 AS 'Expect
1
'
SELECT COUNT(*) = 2 AS 'Expect
2
'
FROM performance_schema.socket_instances
WHERE EVENT_NAME LIKE '%client_connection%'
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
AND (IP LIKE '%127.0.0.1' OR IP LIKE '%::1');
Expect
1
Expect
2
1
#
# 4.2 Verify that there are two TCP/IP connections in the summary instance table
#
SELECT COUNT(*) = 2 AS 'Expect
1
'
SELECT COUNT(*) = 2 AS 'Expect
2
'
FROM performance_schema.socket_summary_by_instance
WHERE EVENT_NAME LIKE '%client_connection%'
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin;
Expect
1
Expect
2
1
#==============================================================================
# 5.0 Drop the client connections
...
...
mysql-test/suite/perfschema/r/socket_instances_func.result
View file @
1e7fed72
...
...
@@ -83,10 +83,10 @@ Expect 1
# There are two entries with 'wait/io/socket/sql/server_tcpip_socket',
# for [::] and for 0.0.0.0.
# They share the same thread id with 'wait/io/socket/sql/server_unix_socket'.
SELECT COUNT(*) = 2 AS 'Expect
1
'
SELECT COUNT(*) = 2 AS 'Expect
2
'
FROM performance_schema.socket_instances
WHERE EVENT_NAME = 'wait/io/socket/sql/server_tcpip_socket';
Expect
1
Expect
2
1
# Get the 'server_tcpip_socket' thread id
SELECT DISTINCT THREAD_ID INTO @thread_id
...
...
@@ -125,15 +125,15 @@ WHERE EVENT_NAME = 'wait/io/socket/sql/server_unix_socket';
Expect 1
1
# Server listening sockets (TCP and Unix) are handled on the same thread
SELECT COUNT(*) = 3 AS 'Expect
1
'
SELECT COUNT(*) = 3 AS 'Expect
3
'
FROM performance_schema.socket_instances
WHERE THREAD_ID = @thread_id;
Expect
1
Expect
3
1
SELECT COUNT(*) = 3 AS 'Expect
1
'
SELECT COUNT(*) = 3 AS 'Expect
3
'
FROM performance_schema.socket_instances
WHERE THREAD_ID = @thread_id;
Expect
1
Expect
3
1
#Compare server listener socket thread ids
select @match_thread_id;
...
...
mysql-test/suite/perfschema/t/socket_connect.test
View file @
1e7fed72
...
...
@@ -237,7 +237,7 @@ WHERE EVENT_NAME LIKE '%client_connection%'
--
echo
#
--
echo
# 4.1 Verify that there are two TCP/IP connections in the socket instance table
--
echo
#
eval
SELECT
COUNT
(
*
)
=
2
AS
'Expect
1
'
eval
SELECT
COUNT
(
*
)
=
2
AS
'Expect
2
'
FROM
performance_schema
.
socket_instances
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
...
...
@@ -246,7 +246,7 @@ WHERE EVENT_NAME LIKE '%client_connection%'
--
echo
#
--
echo
# 4.2 Verify that there are two TCP/IP connections in the summary instance table
--
echo
#
eval
SELECT
COUNT
(
*
)
=
2
AS
'Expect
1
'
eval
SELECT
COUNT
(
*
)
=
2
AS
'Expect
2
'
FROM
performance_schema
.
socket_summary_by_instance
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
;
...
...
@@ -274,7 +274,7 @@ WHERE EVENT_NAME LIKE '%client_connection%'
--
echo
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
--
echo
#
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
AS
'Expect
1
'
SELECT
COUNT
(
*
)
=
0
AS
'Expect
0
'
FROM
performance_schema
.
socket_instances
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
...
...
@@ -285,7 +285,7 @@ WHERE EVENT_NAME LIKE '%client_connection%'
--
echo
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
--
echo
#
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
AS
'Expect
1
'
SELECT
COUNT
(
*
)
=
0
AS
'Expect
0
'
FROM
performance_schema
.
socket_summary_by_instance
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
;
...
...
mysql-test/suite/perfschema/t/socket_instances_func.test
View file @
1e7fed72
...
...
@@ -230,7 +230,7 @@ AND PORT = 0 AND THREAD_ID = @thread_id;
--
echo
# for [::] and for 0.0.0.0.
--
echo
# They share the same thread id with 'wait/io/socket/sql/server_unix_socket'.
SELECT
COUNT
(
*
)
=
2
AS
'Expect
1
'
SELECT
COUNT
(
*
)
=
2
AS
'Expect
2
'
FROM
performance_schema
.
socket_instances
WHERE
EVENT_NAME
=
'wait/io/socket/sql/server_tcpip_socket'
;
...
...
@@ -293,14 +293,14 @@ WHERE EVENT_NAME = 'wait/io/socket/sql/server_unix_socket';
--
disable_query_log
ONCE
eval
SET
@
thread_id
=
$server_tcpip_thread_id
;
eval
SELECT
COUNT
(
*
)
=
3
AS
'Expect
1
'
eval
SELECT
COUNT
(
*
)
=
3
AS
'Expect
3
'
FROM
performance_schema
.
socket_instances
WHERE
THREAD_ID
=
@
thread_id
;
--
disable_query_log
ONCE
eval
SET
@
thread_id
=
$server_unix_thread_id
;
eval
SELECT
COUNT
(
*
)
=
3
AS
'Expect
1
'
eval
SELECT
COUNT
(
*
)
=
3
AS
'Expect
3
'
FROM
performance_schema
.
socket_instances
WHERE
THREAD_ID
=
@
thread_id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment