Bug 5928 - Future error after OutboundQueueEntry.java failed 74/40874/5
authorJozef Bacigal <jbacigal@cisco.com>
Mon, 27 Jun 2016 13:28:59 +0000 (15:28 +0200)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Wed, 29 Jun 2016 07:09:11 +0000 (07:09 +0000)
commit89db8a3bf04990f7c4eebe7ff51c1faacd1343a1
tree04017e789544bca4d42add4417527396148cbe38
parentea8f9bf63be76e855de63056f86c40d9d51fa7ea
Bug 5928 - Future error after OutboundQueueEntry.java failed

In case that OutboundQueueEntry has failed and after that is called
commit again on the same "entry" (completed entry) with callback, on this
callback was never called onFailure.

- try to store last OutboundQueueErorr
- if commit called on completed entry and it has a callback send onFailure to the callback
- added test for entire class

Change-Id: Ie347811ac6dc2c95d58ad49bbf2aa4d69033b33c
Signed-off-by: Jozef Bacigal <jbacigal@cisco.com>
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntry.java
openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/core/connection/OutboundQueueEntryTest.java [new file with mode: 0644]