bug 8029 handle expired in transit entries 37/61537/9
authorK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Fri, 11 Aug 2017 09:23:56 +0000 (14:53 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Tue, 3 Oct 2017 09:08:06 +0000 (09:08 +0000)
commita7637041f73ce8438566702222e22030cde9e5b0
treef5c4d8daa7fc98d7254962659caf5278ddb20739
parentde4e74030571f163a157740d78ecde2b60fe99ac
bug 8029 handle expired in transit entries

when ref count goes to zero , locator is kept in transit state.

if the device still has references to it from other sources like tunnels
the locator will not be deleted from device.

The transactions which wait for this locator will expire.

If the intransit state expires , query the device itself to get its
status and proceed with the transactions which depends on this locator.

added a timer job which triggers every 30sec and checks for expired
intransit keys and clears them.

Change-Id: I0022da4a3a2e748629bc031246f6e6c1509d27a4
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionInstance.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepTableReader.java [new file with mode: 0644]
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/DependencyQueue.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/DependentJob.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/DataChangeListenerTestBase.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/DependencyQueueTest.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepDataChangeListenerTest.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/SameThreadScheduledExecutor.java [new file with mode: 0644]