BUG-2712: do not hold lock while updating future 11/15411/2
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Feb 2015 12:47:56 +0000 (13:47 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 23 Feb 2015 09:12:50 +0000 (09:12 +0000)
commitb1b0924b465bf92172d4b1cb18c6da330a98111f
tree4217e3aca82fdcbe8eebe29e0c7e2a3c05b840b8
parentd0daadb5d1300f067c83c06e611dfb8483b5c310
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>
programming/impl/src/main/java/org/opendaylight/bgpcep/programming/impl/InstructionImpl.java