Skip to content

Commit 8b1ddfa

Browse files
committed
Bug#36101479 Autotest: test_event -n SubscribeEventsNR T1 fails in 7.6
Problem: Test fails to setup a second Api connection. Test uses 2 Api connections, but 2nd API node is bound to different host than 1st API node. [cluster_config.2node] ndb_mgmd = CHOOSE_host1 ndbd = CHOOSE_host2,CHOOSE_host3 ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5 Where CHOOSE_hostX with odd suffix are assigned to different hosts than placeholders with even suffix. # # .2node - two ndbmtd nodes # [cluster_config.2node] ndb_mgmd = 100.103.23.141 ndbd = 100.103.22.6,100.103.23.141 ndbapi= 100.103.23.141,100.103.22.6,100.103.23.141 Solution: Only assign first api node id to a host so ATRT knows on which host to start the test program. This way all API connections will be bound to same host. (similar approach is already used in 8.0+ ) Change-Id: I0f8ab2402287414de417cf59ae33c619e7af1c15
1 parent 4ee2381 commit 8b1ddfa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

storage/ndb/test/run-test/conf-autotest.cnf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ protocol=tcp
3333
[cluster_config.2ndbd]
3434
ndb_mgmd = CHOOSE_host1
3535
ndbd = CHOOSE_host2,CHOOSE_host3
36-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
36+
ndbapi= CHOOSE_host1,,
3737

3838
NoOfReplicas = 2
3939
DataMemory = 400M
@@ -61,7 +61,7 @@ TimeBetweenWatchDogCheckInitial=60000
6161
[cluster_config.2node]
6262
ndb_mgmd = CHOOSE_host1
6363
ndbd = CHOOSE_host2,CHOOSE_host3
64-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
64+
ndbapi= CHOOSE_host1,,
6565

6666
NoOfReplicas = 2
6767
IndexMemory = 100M
@@ -90,7 +90,7 @@ TimeBetweenWatchDogCheckInitial=60000
9090
[cluster_config.2node8thr]
9191
ndb_mgmd = CHOOSE_host1
9292
ndbd = CHOOSE_host2,CHOOSE_host3
93-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
93+
ndbapi= CHOOSE_host1,,
9494

9595
NoOfReplicas = 2
9696
IndexMemory = 100M
@@ -119,7 +119,7 @@ TimeBetweenWatchDogCheckInitial=60000
119119
[cluster_config.2node10thr]
120120
ndb_mgmd = CHOOSE_host1
121121
ndbd = CHOOSE_host2,CHOOSE_host3
122-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
122+
ndbapi= CHOOSE_host1,,
123123

124124
NoOfReplicas = 2
125125
IndexMemory = 100M
@@ -148,7 +148,7 @@ TimeBetweenWatchDogCheckInitial=60000
148148
[cluster_config.4node]
149149
ndb_mgmd = CHOOSE_host1
150150
ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host4,CHOOSE_host5
151-
ndbapi= CHOOSE_host1,CHOOSE_host6,CHOOSE_host7
151+
ndbapi= CHOOSE_host1,,
152152

153153
NoOfReplicas = 2
154154
IndexMemory = 100M
@@ -178,7 +178,7 @@ TimeBetweenWatchDogCheckInitial=60000
178178
[cluster_config.3node3rpl]
179179
ndb_mgmd = CHOOSE_host1
180180
ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host1
181-
ndbapi= CHOOSE_host1,CHOOSE_host2,CHOOSE_host3
181+
ndbapi= CHOOSE_host1,,
182182

183183
NoOfReplicas = 3
184184
IndexMemory = 100M
@@ -205,7 +205,7 @@ TimeBetweenWatchDogCheckInitial=60000
205205
[cluster_config.4node4rpl]
206206
ndb_mgmd = CHOOSE_host1
207207
ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host4,CHOOSE_host5
208-
ndbapi= CHOOSE_host1,CHOOSE_host6,CHOOSE_host7
208+
ndbapi= CHOOSE_host1,,
209209

210210
NoOfReplicas = 4
211211
IndexMemory = 100M
@@ -235,7 +235,7 @@ TimeBetweenWatchDogCheckInitial=60000
235235
[cluster_config.2node2mgm]
236236
ndb_mgmd = CHOOSE_host1,CHOOSE_host6
237237
ndbd = CHOOSE_host2,CHOOSE_host3
238-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
238+
ndbapi= CHOOSE_host1,,
239239

240240
NoOfReplicas = 2
241241
IndexMemory = 50M
@@ -254,7 +254,7 @@ Checksum=1
254254
[cluster_config.2node8thr2mgm]
255255
ndb_mgmd = CHOOSE_host1,CHOOSE_host6
256256
ndbd = CHOOSE_host2,CHOOSE_host3
257-
ndbapi= CHOOSE_host1,CHOOSE_host4,CHOOSE_host5
257+
ndbapi= CHOOSE_host1,,
258258

259259
NoOfReplicas = 2
260260
IndexMemory = 50M
@@ -274,7 +274,7 @@ Checksum=1
274274
[cluster_config.4node2mgm]
275275
ndb_mgmd = CHOOSE_host1,CHOOSE_host8
276276
ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host4,CHOOSE_host5
277-
ndbapi= CHOOSE_host1,CHOOSE_host6,CHOOSE_host7
277+
ndbapi= CHOOSE_host1,,
278278

279279
NoOfReplicas = 2
280280
IndexMemory = 50M

0 commit comments

Comments
 (0)