From 23bc22f64b46e98713ac6c3da1aeeca17d7193ed Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 28 May 2026 13:02:59 +1000 Subject: [PATCH] MDEV-39777: Fixed flaky plugins.unix_socket test The plugins.unix_socket test showed the previous command process. This occurs as after MDEV-38019 the early result to the client results in the server side thread lingering for its cleanup. The subsequent of DROP USER can observer the connection still in progress and hence outputing a warning. Used --ping in the peer_cred_test so that on completion, there is no connection active for the user. --- mysql-test/suite/plugins/t/unix_socket.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql-test/suite/plugins/t/unix_socket.test b/mysql-test/suite/plugins/t/unix_socket.test index 892b6f7516197..fdedb4fbc2b91 100644 --- a/mysql-test/suite/plugins/t/unix_socket.test +++ b/mysql-test/suite/plugins/t/unix_socket.test @@ -16,6 +16,9 @@ eval grant select on test.* to '$USER'; --let $replace2=$USER@% --replace_result $replace1 "USER@localhost" $replace2 "USER@%" select user(), current_user(), database(); +# Enforce the cleanup so the next execution of in DROP USER +# doesn't see this connection active. +--ping EOF --echo #