-
Mauritz Sundell authored
PROBLEM ======= In autotest several test started to fail for 3 replica testing. These was caused by test running on more than two nodes, which in turn made more than 1 of 3 api nodes to be bound to other hosts than the test program is running on. Some tests tried to use all api nodes but one, these would fail if more than one api node was bound to another host. Other test like testBackup needed at least two api node id on test program host, one for test program and one for ndb_restore, these would fail if there was only one api node id on test program host. Api node id was bound to different host since in cluster_configuration (from for example conf-autest.cnf) by the ndbapi line in: [cluster_config.3node3rpl] ndb_mgmd = CHOOSE_host1 ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host1 ndbapi= CHOOSE_host1,CHOOSE_host2,CHOOSE_host3 For a 2 host run host1 and host3 would be the same and no problem visible. With a 3 host run, all of host1, host2, and, host3 would be different and the above kind of failures would be visible. SOLUTION ======== Only assign first api node id to a host so that atrt knows on which host to start the test program. [cluster_config.XXX] ... ndbapi= CHOOSE_host1,, Reviewed-by:
Sanjana DS <sanjana.ds@oracle.com>
Mauritz Sundell authoredPROBLEM ======= In autotest several test started to fail for 3 replica testing. These was caused by test running on more than two nodes, which in turn made more than 1 of 3 api nodes to be bound to other hosts than the test program is running on. Some tests tried to use all api nodes but one, these would fail if more than one api node was bound to another host. Other test like testBackup needed at least two api node id on test program host, one for test program and one for ndb_restore, these would fail if there was only one api node id on test program host. Api node id was bound to different host since in cluster_configuration (from for example conf-autest.cnf) by the ndbapi line in: [cluster_config.3node3rpl] ndb_mgmd = CHOOSE_host1 ndbd = CHOOSE_host2,CHOOSE_host3,CHOOSE_host1 ndbapi= CHOOSE_host1,CHOOSE_host2,CHOOSE_host3 For a 2 host run host1 and host3 would be the same and no problem visible. With a 3 host run, all of host1, host2, and, host3 would be different and the above kind of failures would be visible. SOLUTION ======== Only assign first api node id to a host so that atrt knows on which host to start the test program. [cluster_config.XXX] ... ndbapi= CHOOSE_host1,, Reviewed-by:
Sanjana DS <sanjana.ds@oracle.com>
Loading