Bug #93950 Contribution by Facebook: Override MTR\'s unique ids directory
Submitted: 16 Jan 2019 13:45 Modified: 11 Feb 2019 23:59
Reporter: FBContrib Admin Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[16 Jan 2019 13:45] FBContrib Admin
Background innformation provided by Facebook:

To run tests where multiple invocations of mtr may be running on the same host, but in different chroots, we need to override the directory MTR uses to reserve unique thread ids, and thus ports, so that the runs all see the same directory and do not conflict with one another.

Repo: https://github.com/mysql/mysql-server
Patch on top of 8.0.13: https://github.com/mysql/mysql-server/commit/e4924f36486f971f8a04252e01c803457a2c72f7

How to repeat:
See description

Suggested fix:
See contribution code attached
[16 Jan 2019 13:45] FBContrib Admin
Override MTR's unique ids directory 
(*) This code is contributed under the Facebook agreement

Contribution: fb_patch_96.txt (text/plain), 684 bytes.

[6 Feb 2019 16:37] Omer Barnir
Thanks for the contribution
[11 Feb 2019 23:59] Paul DuBois
Posted by developer:
Fixed in 8.0.16.

mysql-test-run.pl now supports the MTR_UNIQUE_IDS_DIR environment
variable, which may be set to specify a unique-IDs directory to be
used as the common location for all chroot environments by multiple
simultaneous mysql-test-run.pl instances. This enables those
instances to avoid conflicts when reserving port numbers. Thanks to
Facebook for the contribution.