BUG-1384: YangStoreServiceImpl.refresh() should never block 18/9118/3
authorRobert Varga <rovarga@cisco.com>
Thu, 17 Jul 2014 14:19:32 +0000 (16:19 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 17 Jul 2014 14:23:13 +0000 (16:23 +0200)
commitbca9e7b16cd96a988be8b9feeb1a738d12f9ca25
treeabccdcc1adf003773af9952a38e577ddcef888fa
parent849c55387fcc44f2e91aba8ab38006f929659cc6
BUG-1384: YangStoreServiceImpl.refresh() should never block

As descirbed in the bug, we are seeing large amounts of contention on
the monitor when calling refresh(). Rework the safety such that the
refresh path does not block and perform checking for refresh in the
get() path, which is forced to retry should a refresh occur.

With this patch reported contention disappears completely and startup
time is improved by about 8 seconds on stock SP edition.

Change-Id: I4c6109d77324d3d1b700041b54a95dc346e3d372
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/netconf/config-netconf-connector/src/main/java/org/opendaylight/controller/netconf/confignetconfconnector/osgi/YangStoreServiceImpl.java