BUG-8494: do not attempt to reconnect ReconnectingClientConnection
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / ReconnectingClientConnection.java
index b59c9e324ae96b73cf28dc568a1147c3603dc3ee..6a3ba276fbe2ac58d4df2ad0ac7b621dd8fe0122 100644 (file)
@@ -29,10 +29,16 @@ public final class ReconnectingClientConnection<T extends BackendInfo> extends A
         this.cause = Preconditions.checkNotNull(cause);
     }
 
+    @Override
+    long backendSilentTicks(final long now) {
+        // We do not want to reconnect this connection, as we need the timer to to keep running
+        return 0;
+    }
+
     @Override
     ClientActorBehavior<T> lockedReconnect(final ClientActorBehavior<T> current, final RequestException cause) {
         this.cause = Preconditions.checkNotNull(cause);
-        LOG.debug("Skipping reconnect of already-reconnecting connection {}", this);
+        LOG.warn("Skipping reconnect of already-reconnecting connection {}", this);
         return current;
     }