You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#31468581 - INVALID PID IN UNIX SOCKET LOCK FILE
Description
===========
X Plugin has its own "lock" file format, to be able to detect if it was
reserved by classic protocol or x protocol. Both classic and
X unix-socket handlers kills processes that wrote the "lockfile", thus
the mechanism was introduced to minimize chance to kill "wrong" process.
When user configured the classic protocol unix-socket file, to the same
value as it was assigned to X unix-socket, then in that case he was forced
to remove manually the X lock-file.
Fix
===
The file format of X unix socket lock files was aligned to classic mainly
to make easier fixing wrong configuration of `mysqld` when there is no
direct access to the host.
RB: 27395
Reviewed-by: Tomasz Stepniak <tomasz.s.stepniak@oracle.com>
Copy file name to clipboardExpand all lines: mysql-test/suite/x/r/connection_unixsocket_invalid.result
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,7 @@ Application terminated with expected error: No such file or directory, while con
22
22
ok
23
23
Application terminated with expected error: Not a directory, while connecting to SOCKET (code 2002)
24
24
ok
25
-
call mtr.add_suppression("Plugin mysqlx reported: .Setup of socket: '\(.+\)' failed, lock file wasn't allocated by X Plugin");
26
-
call mtr.add_suppression("Plugin mysqlx reported: .* X Plugin won't be accessible through UNIX socket");
25
+
call mtr.add_suppression("Plugin mysqlx reported: 'X Plugins UNIX socket must use different file than MySQL server. X Plugin won't be accessible through UNIX socket");
27
26
# restart: --loose-mysqlx-socket= SOCKET
28
27
# restart: --loose-mysqlx-socket= SOCKET
29
28
RUN SELECT CONNECTION_TYPE from performance_schema.threads where processlist_command='Query';
Copy file name to clipboardExpand all lines: mysql-test/suite/x/t/connection_unixsocket_invalid.test
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,7 @@ exec $MYSQLXTEST
66
66
67
67
# Use the same socket as mysqld uses
68
68
# X Plugin should fail with allocation
69
-
call mtr.add_suppression("Plugin mysqlx reported: .Setup of socket: '\(.+\)' failed, lock file wasn't allocated by X Plugin");
70
-
call mtr.add_suppression("Plugin mysqlx reported: .* X Plugin won't be accessible through UNIX socket");
69
+
call mtr.add_suppression("Plugin mysqlx reported: 'X Plugins UNIX socket must use different file than MySQL server. X Plugin won't be accessible through UNIX socket");
71
70
72
71
--replace_regex $UNIX_SOCKET_REGEX
73
72
let $restart_parameters = restart: --loose-mysqlx-socket=$MASTER_MYSOCK;
0 commit comments