Elffuss BraidHub

kikocis/java-driver public

Add comment.
Changeset095dcb0e71d372d8a54f00c109e9826b27eddc944ebd9ebbe72ace3f5a6a097f
Authorolim7t <omichallat+github@gmail.com> · 2014-12-17 11:28 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2014-12-17 11:49 +01:00
Parents4e0a831217eb

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +2 −0
@@ -259,6 +259,8 @@
259259 // sure the "suspected" mechanism work as expected
260260 Host host = factory.manager.metadata.getHost(address);
261261 if (host != null) {
262+ // This will trigger onDown, including when the defunct Connection is part of a reconnection attempt, which is redundant.
263+ // This is not too much of a problem since calling onDown on a node that is already down has no effect.
262264 boolean isDown = factory.manager.signalConnectionFailure(host, ce, host.wasJustAdded(), isInitialized);
263265 notifyOwnerWhenDefunct(isDown);
264266 }