Elffuss BraidHub

kikocis/java-driver public

Handle unknown errors in ControlConnection#reconnect.
Changeset43c7e4b6378c0fa8588d9c464df9181dda084b474f483c1e5ede7f83f6d07b22
Authorolim7t <omichallat+github@gmail.com> · 2014-12-21 16:54 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2014-12-21 16:54 +01:00
Parents5ae6590a9129

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java +3 −0
@@ -109,6 +109,9 @@
109109 // reconnectInternal only propagate those if we've not decided on the protocol version yet,
110110 // which should only happen on the initial connection and thus in connect() but never here.
111111 throw new AssertionError();
112+ } catch (Exception e) {
113+ logger.error("[Control connection] Unknown error during reconnection, scheduling retry", e);
114+ backgroundReconnect(-1);
112115 }
113116 }
114117