MDEV-35208 mtr correct behaviour of --port-base #3586
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Commit c2d9762 added additional ports for galera, and moved the starting port into the 19000 range.
Unfortunately --port-base settings have some odd relationships and now mtr --port-base=21000 will end up looking for ports 0-30.
This patch removes some existing code related to 4.0 and 5.1 MySQL testing concurrently which I assume no-one has done for 15+ years.
Replace the concept of a build_thread to refer straight to the port number of the worker being used. Once this is done the number of calculations is reduced.
Also put the default --port-base back to 16000 where it was for very many years.
Release Notes
Correct mariadb-test-suite --port-base behaviour and puts default port-base back to 16000
How can this PR be tested?
mtr main.select
mtr --mtr-port-base=19000 main.select
mtr --mtr-port-base=21000 main.select
mtr --mtr-port-base=21000 --parallel 30 main.select{,,,,,,,,,,,,,,,,,,}
If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.
Basing the PR against the correct MariaDB version
main
branch.PR quality check