Skip to content

Commit f0e0a21

Browse files
spodkowinskiolim7t
authored andcommitted
JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
1 parent 97363ce commit f0e0a21

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 2.1.9 (in progress)
44

55
- [bug] Fix implementation of UserType.hashCode() (JAVA-942)
6+
- [bug] JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
67

78
Merged from 2.0 branch:
89

driver-core/src/main/java/com/datastax/driver/core/Cluster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ else if (host.state == Host.State.DOWN)
14821482

14831483
if (!connectionFactory.protocolVersion.isSupportedBy(host)) {
14841484
logUnsupportedVersionProtocol(host, connectionFactory.protocolVersion);
1485-
return;
1485+
continue;
14861486
}
14871487

14881488
if (!contactPointHosts.contains(host))

0 commit comments

Comments
 (0)