Elffuss BraidHub

kikocis/java-driver public

Clarify documentation in ClusterInitTest.
Changesetd34b31a58ea2307a91c2d3019a705db1330f7a3422d4ff021e5aa078306fbc2a
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-06 13:00 -06:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-06 13:00 -06:00
Parents45816f44a013

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ClusterInitTest.java +4 −4
@@ -223,7 +223,7 @@
223223
224224 /**
225225 * 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.
227227 *
228228 * @jira_ticket JAVA-854
229229 * @test_category host:state
@@ -244,11 +244,11 @@
244244 for(int i = 0; i < scassandraCluster.addresses().size(); i++) {
245245 String hostAddress = scassandraCluster.addresses().get(i).getHostAddress();
246246 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.
248248 assertThat(cluster).host(hostAddress).hasState(Host.State.ADDED);
249249 } 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.
252252 assertThat(cluster).host(hostAddress).hasState(Host.State.UP);
253253 }
254254 }