BUG-2712: do not hold lock while updating future 86/15886/2
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Feb 2015 12:47:56 +0000 (13:47 +0100)
committerDana Kutenicsova <dkutenic@cisco.com>
Mon, 2 Mar 2015 07:28:17 +0000 (07:28 +0000)
commit52f08e4cd9f0f9d6637467c6b27772dedfd5e5a7
treeacca3a643eeca52ef540ea1c3011c5638d2de3bb
parent7af0f1db1f029b7306e8d03ab6b0e38986b2dbea
BUG-2712: do not hold lock while updating future

SettableFuture will call any and all registrants, which could
potentially lead to AB/BA deadlocks. with ProgrammingServiceImpl. Issue
the call to set outside a synchronized block.

Change-Id: Iddb268d2157256466b597aaef78002b4f474a149
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit b1b0924b465bf92172d4b1cb18c6da330a98111f)
programming/impl/src/main/java/org/opendaylight/bgpcep/programming/impl/InstructionImpl.java