Skip to content

Commit 67a5409

Browse files
authored
fixed acquireHostList to loadBalancer or hostname alias (#385)
* arangodb-java-driver-384 "java.net.SocketException: Socket closed" when in a cluster mode + Docke... * arangodb-java-driver-384 remove redundant "connection.close()" statement
1 parent d48390c commit 67a5409

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/main/java/com/arangodb/internal/velocystream/VstCommunication.java

+6
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ protected synchronized C connect(final HostHandle hostHandle, final AccessType a
9292
tryAuthenticate(connection);
9393
}
9494
hostHandler.confirm();
95+
if (!connection.isOpen()) {
96+
// see https://github.com/arangodb/arangodb-java-driver/issues/384
97+
hostHandler.fail();
98+
host = hostHandler.get(hostHandle, accessType);
99+
continue;
100+
}
95101
return connection;
96102
} catch (final IOException e) {
97103
hostHandler.fail();

0 commit comments

Comments
 (0)