Bug 6304 - Regression in Connection reconciliation functionality 57/42757/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Fri, 29 Jul 2016 04:35:07 +0000 (21:35 -0700)
committerAnil Vishnoi <vishnoianil@gmail.com>
Fri, 29 Jul 2016 04:54:26 +0000 (04:54 +0000)
commitb04cf5dbb4c3f28aa1761e2e651b221e3fbae6cf
tree833595939e78fd5ee885895b80b6aa8a79738c47
parent7eda700bac7411e4e4632e665dafab9328e2436c
Bug 6304 - Regression in Connection reconciliation functionality

After enabling the checkstyle, we start catching the
specific exceptions rather then catching all the exception
using Exception. During the retry, connection task encounters
ConnectionException, but nobody catches that exception and
it kills the reconciliation thread, so it does not retry
the connection after first attempt. This patch fixes this
issue and handles the ConnectionException properly.

Change-Id: I0e1f71ea6fa550df484ade9036f7dfe6c9dfa57e
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionManager.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepDataChangeListener.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/reconciliation/connection/ConnectionReconciliationTask.java
library/impl/src/main/java/org/opendaylight/ovsdb/lib/impl/OvsdbConnectionService.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataTreeChangeListener.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/reconciliation/connection/ConnectionReconciliationTask.java