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
2a2e8ea8
Commit
2a2e8ea8
authored
Dec 06, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17917 MTR: fixed race conditions in perfschema.socket_connect, main.connect
parent
6491c591
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
21 deletions
+8
-21
mysql-test/suite/perfschema/r/socket_connect.result
mysql-test/suite/perfschema/r/socket_connect.result
+0
-13
mysql-test/suite/perfschema/t/socket_connect.test
mysql-test/suite/perfschema/t/socket_connect.test
+6
-3
mysql-test/t/connect.test
mysql-test/t/connect.test
+2
-5
No files found.
mysql-test/suite/perfschema/r/socket_connect.result
View file @
2a2e8ea8
...
@@ -159,19 +159,6 @@ Expect 1
...
@@ -159,19 +159,6 @@ Expect 1
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
SELECT COUNT(*) = 0 AS 'Expect 1'
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
1
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
SELECT COUNT(*) = 0 AS 'Expect 1'
FROM performance_schema.socket_summary_by_instance
WHERE EVENT_NAME LIKE '%client_connection%'
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin;
Expect 1
1
mysql-test/suite/perfschema/t/socket_connect.test
View file @
2a2e8ea8
...
@@ -273,18 +273,21 @@ WHERE EVENT_NAME LIKE '%client_connection%'
...
@@ -273,18 +273,21 @@ WHERE EVENT_NAME LIKE '%client_connection%'
--
echo
--
echo
--
echo
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
--
echo
# 6.1 Verify that there are no TCP/IP connections in the socket instance table
--
echo
--
echo
eval
SELECT
COUNT
(
*
)
=
0
AS
'Expect 1'
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
AS
'Expect 1'
FROM
performance_schema
.
socket_instances
FROM
performance_schema
.
socket_instances
WHERE
EVENT_NAME
LIKE
'%client_connection%'
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
AND
$ip_localhost
;
AND
$ip_localhost
;
--
source
include
/
wait_condition
.
inc
--
echo
--
echo
--
echo
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
--
echo
# 6.2 Verify that there are no TCP/IP connections in the summary instance table
--
echo
--
echo
eval
SELECT
COUNT
(
*
)
=
0
AS
'Expect 1'
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
AS
'Expect 1'
FROM
performance_schema
.
socket_summary_by_instance
FROM
performance_schema
.
socket_summary_by_instance
WHERE
EVENT_NAME
LIKE
'%client_connection%'
WHERE
EVENT_NAME
LIKE
'%client_connection%'
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
;
AND
OBJECT_INSTANCE_BEGIN
<>
@
default_object_instance_begin
;
--
source
include
/
wait_condition
.
inc
exit
;
exit
;
mysql-test/t/connect.test
View file @
2a2e8ea8
...
@@ -253,11 +253,8 @@ let $wait_condition =
...
@@ -253,11 +253,8 @@ let $wait_condition =
--
echo
--
echo
--
echo
# -- Waiting for connections to close...
--
echo
# -- Waiting for connections to close...
let
$wait_condition
=
let
$count_sessions
=
1
;
SELECT
COUNT
(
*
)
=
1
--
source
include
/
wait_until_count_sessions
.
inc
FROM
information_schema
.
processlist
WHERE
db
=
'test'
;
--
source
include
/
wait_condition
.
inc
--
echo
--
echo
DROP
USER
mysqltest_u1
@
localhost
;
DROP
USER
mysqltest_u1
@
localhost
;
...
...
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