Commit 117abb2
tests: fix NLB replacement test bootstrap crash due to missing rackdc properties
The _bootstrap_node() method in TestFullNodeReplacementThroughNlb calls
ccm_cluster.add() without passing data_center or rack. CCM does not
infer these from existing nodes, so the new node's
cassandra-rackdc.properties file is left with only template comments.
Scylla's GossipingPropertyFileSnitch fails to parse the empty file and
crashes on startup with 'locator::bad_property_file_error'.
Fix by reading data_center/rack from an existing cluster node and
passing them explicitly to ccm_cluster.add().
This test was added in PR #706 with a @skip_scylla_version_lt(2026.1.0)
decorator and CI runs Scylla 2025.2, so the bug was never caught.1 parent 4502520 commit 117abb2
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
| 1181 | + | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1301 | 1306 | | |
1302 | 1307 | | |
1303 | 1308 | | |
| |||
0 commit comments