Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/integration/standard/test_client_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,14 @@ def _bootstrap_node(self, ccm_cluster, node_id):
remote_debug_port=0,
initial_token=None,
)
ccm_cluster.add(node_instance, is_seed=False)
# CCM does not infer data_center/rack when adding a node, so
# we must pass them explicitly to ensure cassandra-rackdc.properties
# is written correctly. Without this the snitch fails to parse the
# empty properties file and the node crashes on startup.
existing = next(iter(ccm_cluster.nodes.values()))
dc = existing.data_center or 'dc1'
rack = existing.rack or 'RAC1'
ccm_cluster.add(node_instance, is_seed=False, data_center=dc, rack=rack)
node_instance.start(wait_for_binary_proto=True, wait_other_notice=True)
wait_for_node_socket(node_instance, 120)
log.info("Node %d bootstrapped successfully", node_id)
Expand Down
Loading