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();
Some tests using the following code to provision two dc cluster:
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: