[MDEV-9257] [PATCH] mtr limits parallel tests to 50 Created: 2015-12-10  Updated: 2016-06-14  Resolved: 2016-06-14

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 5.5.46, 10.0.22, 10.1.9
Fix Version/s: 5.5.50

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Vicențiu Ciorbaru
Resolution: Fixed Votes: 0
Labels: contribution, patch, upstream

Sprint: 5.5.48-0, 5.5.50

 Description   

Parallel workers of the mysql-test-run has an artificial limit of 50 workers. On some hardware more CPUs are present. Running on such a hardware bot runs out of unique build thread ids

build@2b2bb0db98a7:~/build/mysql-test$ export MTR_MAX_PARALLEL=900
build@2b2bb0db98a7:~/build/mysql-test$ export MTR_PARALLEL=auto
build@2b2bb0db98a7:~/5.5-build/mysql-test$ ./mtr
Logging: /build/5.5/mysql-test/mysql-test-run.pl
vardir: /build/5.5-build/mysql-test/var
Removing old var directory...
Creating var directory '/build/5.5-build/mysql-test/var'...
Checking supported features...
Using suites: main-,archive-,binlog-,csv-,federated-,funcs_1-,funcs_2-,handler-,heap-,innodb-,innodb_zip-,maria-,optimizer_unfixed_bugs-,oqgraph-,parts-,percona-,perfs
chema-,plugins-,rpl-,sphinx-,sys_vars-,unit-,vcol-
MariaDB Version 5.5.47-MariaDB
Installing system database...
 - SSL connections supported
Collecting tests...
Using parallel: 161
worker[30] Using MTR_BUILD_THREAD 304, with reserved ports 16080..16099
worker[35] Using MTR_BUILD_THREAD 305, with reserved ports 16100..16119
worker[5] Using MTR_BUILD_THREAD 307, with reserved ports 16140..16159
worker[4] Using MTR_BUILD_THREAD 306, with reserved ports 16120..16139
worker[1] Using MTR_BUILD_THREAD 308, with reserved ports 16160..16179
worker[7] Using MTR_BUILD_THREAD 310, with reserved ports 16200..16219
worker[2] Using MTR_BUILD_THREAD 309, with reserved ports 16180..16199
worker[3] Using MTR_BUILD_THREAD 311, with reserved ports 16220..16239
worker[8] Using MTR_BUILD_THREAD 312, with reserved ports 16240..16259
worker[44] Using MTR_BUILD_THREAD 316, with reserved ports 16320..16339
worker[18] Using MTR_BUILD_THREAD 313, with reserved ports 16260..16279
worker[9] Using MTR_BUILD_THREAD 314, with reserved ports 16280..16299
worker[15] Using MTR_BUILD_THREAD 315, with reserved ports 16300..16319
worker[16] Using MTR_BUILD_THREAD 320, with reserved ports 16400..16419
worker[13] Using MTR_BUILD_THREAD 318, with reserved ports 16360..16379
worker[12] Using MTR_BUILD_THREAD 317, with reserved ports 16340..16359
worker[48] Using MTR_BUILD_THREAD 325, with reserved ports 16500..16519
worker[20] Using MTR_BUILD_THREAD 319, with reserved ports 16380..16399
worker[46] Using MTR_BUILD_THREAD 327, with reserved ports 16540..16559
worker[47] Using MTR_BUILD_THREAD 328, with reserved ports 16560..16579
worker[14] Using MTR_BUILD_THREAD 321, with reserved ports 16420..16439
worker[10] Using MTR_BUILD_THREAD 322, with reserved ports 16440..16459
worker[6] Using MTR_BUILD_THREAD 323, with reserved ports 16460..16479
worker[11] Using MTR_BUILD_THREAD 326, with reserved ports 16520..16539
worker[21] Using MTR_BUILD_THREAD 324, with reserved ports 16480..16499
worker[50] Using MTR_BUILD_THREAD 331, with reserved ports 16620..16639
worker[41] Using MTR_BUILD_THREAD 330, with reserved ports 16600..16619
worker[23] Using MTR_BUILD_THREAD 329, with reserved ports 16580..16599
worker[49] Using MTR_BUILD_THREAD 332, with reserved ports 16640..16659
worker[24] Using MTR_BUILD_THREAD 333, with reserved ports 16660..16679
worker[25] Using MTR_BUILD_THREAD 334, with reserved ports 16680..16699
worker[43] Using MTR_BUILD_THREAD 336, with reserved ports 16720..16739
worker[29] Using MTR_BUILD_THREAD 337, with reserved ports 16740..16759
worker[57] Using MTR_BUILD_THREAD 339, with reserved ports 16780..16799
worker[17] Using MTR_BUILD_THREAD 335, with reserved ports 16700..16719
worker[45] Using MTR_BUILD_THREAD 340, with reserved ports 16800..16819
worker[63] Using MTR_BUILD_THREAD 341, with reserved ports 16820..16839
worker[61] Using MTR_BUILD_THREAD 342, with reserved ports 16840..16859
worker[26] Using MTR_BUILD_THREAD 338, with reserved ports 16760..16779
worker[64] Using MTR_BUILD_THREAD 345, with reserved ports 16900..16919
worker[28] Using MTR_BUILD_THREAD 343, with reserved ports 16860..16879
worker[31] Using MTR_BUILD_THREAD 344, with reserved ports 16880..16899
worker[19] Using MTR_BUILD_THREAD 346, with reserved ports 16920..16939
worker[36] Using MTR_BUILD_THREAD 349, with reserved ports 16980..16999
worker[22] Using MTR_BUILD_THREAD 347, with reserved ports 16940..16959
worker[62] mysql-test-run: *** ERROR: Could not get a unique build thread id
worker[60] mysql-test-run: *** ERROR: Could not get a unique build thread id
worker[39] mysql-test-run: *** ERROR: Could not get a unique build thread id
worker[33] Using MTR_BUILD_THREAD 348, with reserved ports 16960..16979
worker[74] mysql-test-run: *** ERROR: Could not get a unique build thread id
worker[52] mysql-test-run: *** ERROR: Could not get a unique build thread id
worker[75] mysql-test-run: *** ERROR: Could not get a unique build thread id
...



 Comments   
Comment by Vicențiu Ciorbaru [ 2016-06-14 ]

Contribution slightly changed and merged into 5.5 branch.

cf721d23cc90e7848b0611180b9777d080a1faf6

Comment by Daniel Black [ 2016-06-14 ]

thanks cvicentiu

Generated at Thu Feb 08 07:33:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.