commit | 8d616a3d9691f63260a7d75c5767d1bf2f62e8fe | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Mon Jan 07 19:59:10 2019 -0800 |
committer | Charles Chan <charles@opennetworking.org> | Wed Jan 09 07:16:27 2019 +0000 |
tree | 6a845f2b0e3c01da77cc6c012b55c7a93f041662 | |
parent | b880654b06686f4aae02585dc0a28a10fcc13cbb [diff] |
Prevent objective context from being executed multiple times Consider the following sequence: 1. Flow objective issued 2. Cache timeout since the objective is not processed in time. onError()() will be triggered with ObjectiveError.INSTALLATIONTIMEOUT 3. While 2 is still being processed, the objective actually completed. onSuccess() will be triggered and therefore the same objective will be dequeued and executed again The unit test was also wrong. One objective context should only be executed once no matter the objective succeeded or failed. Change-Id: I2501903bebee6fd9eefb03a71042c4a06ba4c42f
ONOS is a new SDN network operating system designed for high availability, performance, scale-out.