kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e196892375ed5d0d3396310c25d13b890c280fd1cd52fe32f2ac9f7d94d6dce5 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-10-27 15:38 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-10-27 16:18 +01:00 |
| Parents | c5e39b1c1a92 |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/AbstractReconnectionHandler.java +1 −1
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | * <p> |
| 32 | 32 | * Concurrent attempts are handled via the {@link #currentAttempt} reference passed to the constructor. |
| 33 | 33 | * For a given reference, only one handler will run at a given time. Additional handlers will cancel |
| 34 | - * themselves if they fight a previous handler running. | |
| 34 | + * themselves if they find a previous handler running. | |
| 35 | 35 | * <p> |
| 36 | 36 | * This class is designed for concurrency, but instances must not be shared: each thread creates and |
| 37 | 37 | * starts its own private handler, all interactions happen through {@link #currentAttempt}. |
modified driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java +1 −2
| @@ -160,8 +160,7 @@ | ||
| 160 | 160 | Connection connection = connectionRef.get(); |
| 161 | 161 | if (connection != null && connection.isDefunct()) { |
| 162 | 162 | // If the connection was marked as defunct, this already reported the |
| 163 | - // node down, which will trigger a reconnect. Otherwise, just reconnect | |
| 164 | - // manually | |
| 163 | + // node down, which will trigger a reconnect. | |
| 165 | 164 | return; |
| 166 | 165 | } |
| 167 | 166 | // If the connection is not defunct, or the host has left, just reconnect manually |