kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 095dcb0e71d372d8a54f00c109e9826b27eddc944ebd9ebbe72ace3f5a6a097f |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-12-17 11:28 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-12-17 11:49 +01:00 |
| Parents | 4e0a831217eb |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +2 −0
| @@ -259,6 +259,8 @@ | ||
| 259 | 259 | // sure the "suspected" mechanism work as expected |
| 260 | 260 | Host host = factory.manager.metadata.getHost(address); |
| 261 | 261 | 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. | |
| 262 | 264 | boolean isDown = factory.manager.signalConnectionFailure(host, ce, host.wasJustAdded(), isInitialized); |
| 263 | 265 | notifyOwnerWhenDefunct(isDown); |
| 264 | 266 | } |