kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | d34b31a58ea2307a91c2d3019a705db1330f7a3422d4ff021e5aa078306fbc2a |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-06 13:00 -06:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-06 13:00 -06:00 |
| Parents | 45816f44a013 |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +4 −4
| @@ -223,7 +223,7 @@ | ||
| 223 | 223 | |
| 224 | 224 | /** |
| 225 | 225 | * Ensures that if a node is detected that does not support the protocol version in use on init that |
| 226 | - * the node is not marked up and the all other hosts are appropriately marked up. | |
| 226 | + * the node is ignored and remains in an added state and the all other hosts are appropriately marked up. | |
| 227 | 227 | * |
| 228 | 228 | * @jira_ticket JAVA-854 |
| 229 | 229 | * @test_category host:state |
| @@ -244,11 +244,11 @@ | ||
| 244 | 244 | for(int i = 0; i < scassandraCluster.addresses().size(); i++) { |
| 245 | 245 | String hostAddress = scassandraCluster.addresses().get(i).getHostAddress(); |
| 246 | 246 | if (i == 2) { |
| 247 | - // As this host is at an older protocol version, it should not be marked added. | |
| 247 | + // As this host is at an older protocol version, it should be ignored and not marked up. | |
| 248 | 248 | assertThat(cluster).host(hostAddress).hasState(Host.State.ADDED); |
| 249 | 249 | } else { |
| 250 | - // All hosts should be set as 'UP' as part of cluster.init() if they are | |
| 251 | - // in added state it's possible that cluster.init() did not fully complete. | |
| 250 | + // All hosts should be set as 'UP' as part of cluster.init(). If they are | |
| 251 | + // in 'ADDED' state it's possible that cluster.init() did not fully complete. | |
| 252 | 252 | assertThat(cluster).host(hostAddress).hasState(Host.State.UP); |
| 253 | 253 | } |
| 254 | 254 | } |