Skip to content

3.x: fix multi DC tests in ZeroTokenNodesIT #522

@dkropachev

Description

@dkropachev

Some tests using the following code to provision two dc cluster:

      ccmBridge =
          CCMBridge.builder().withNodes(2).withIpPrefix("127.0.1.").withBinaryPort(9042).build();
      ccmBridge.start();
      ccmBridge.add(2, 3);
      ccmBridge.updateNodeConfig(3, "join_ring", false);
      ccmBridge.start(3);
      ccmBridge.add(2, 4);
      ccmBridge.updateNodeConfig(4, "join_ring", false);

Due to the bug in CCM you can't provision second DC if cluster was provision with only one.
Because of this error you endup with cluster of one DC.

Fix, is to provision cluster with two DCs, second DC with 0 nodes:

      ccmBridge =
          CCMBridge.builder().withNodes(2,0).withIpPrefix("127.0.1.").withBinaryPort(9042).build();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions