Bug #98370 Contribution by Facebook: Replace mysql_testsocket.sock with mysqld.NN.sock
Submitted: 25 Jan 2020 1:46 Modified: 22 Aug 2021 15:26
Reporter: FBContrib Admin Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S3 (Non-critical)
Version:8.0.17 OS:Any
Assigned to: CPU Architecture:Any

[25 Jan 2020 1:46] FBContrib Admin
Description:
Background innformation provided by Facebook:
Abstract:

    The string used to check for the max socket name path len is longer than
    the actual socket string names. When the path is sufficiently long, but
    still within the limit, the longer mysql_testsocket string causes
    problems. Reduce this string to the typical socket pathname instead.

Use case:

There are time when mysql_testsocket would fail even though the actual socket path is shorter than the testsocket name, so change the pathname to be similar to the actual pathname used during the test.

Repo: https://github.com/mysql/mysql-server

Patch on top of 8.0.17: https://github.com/mysql/mysql-server/commit/4869291f7ee
 

How to repeat:
See description

Suggested fix:
See contribution code attached
[25 Jan 2020 1:46] FBContrib Admin
Replace mysql_testsocket.sock with mysqld.NN.sock 
(*) This code is contributed under the Facebook agreement

Contribution: fb_patch_157.txt (text/plain), 1.67 KiB.

[23 Aug 2021 14:08] Jon Stephens
Fixed in MySQL 8.0.21. No user-facing changes to document in the Manual. Closed.
[23 Aug 2021 20:32] Omer Barnir
Thanks to Facebook for the contribution