mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 19:01:06 +02:00
[CORD-2533] UnsupportedOperationException in OFDPA pipeliner
Rationale: appkryo returns immutable lists serializable which do not support removeIf and addAll methods Change-Id: I25f7f818677d78cad65122f476702f9e194fd620
This commit is contained in:
parent
63edd93b14
commit
d008dbeb7f
@ -1440,6 +1440,7 @@ public class Ofdpa2GroupHandler {
|
||||
// get a fresh copy of what the store holds
|
||||
NextGroup next = flowObjectiveStore.getNextGroup(nextObjective.id());
|
||||
List<Deque<GroupKey>> allActiveKeys = appKryo.deserialize(next.data());
|
||||
allActiveKeys = Lists.newArrayList(allActiveKeys);
|
||||
// Note that since we got a new object, and ArrayDeque does not implement
|
||||
// Object.equals(), we have to check the deque elems one by one
|
||||
allActiveKeys
|
||||
@ -1814,6 +1815,7 @@ public class Ofdpa2GroupHandler {
|
||||
}
|
||||
if (nextGrp.nextObjective().op() == Operation.ADD_TO_EXISTING) {
|
||||
List<Deque<GroupKey>> allActiveKeys = appKryo.deserialize(next.data());
|
||||
allActiveKeys = Lists.newArrayList(allActiveKeys);
|
||||
// If active keys shows only the top-level group without a chain of groups,
|
||||
// then it represents an empty group. Update by replacing empty chain.
|
||||
if (allActiveKeys.size() == 1 && allActiveKeys.get(0).size() == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user