SDFAB-76 Work around missing packet request cased by consistet multimap issue
Stores that use consistent multimap such as packet and route store are affected by SDFAB-241.
This patch work around it by using forEach() or stream() rather than values(), which return the expected result
Change-Id: I4a12d646ad7f219f6a17ce295fb5ca25641fd902
diff --git a/apps/route-service/app/src/main/java/org/onosproject/routeservice/store/DefaultRouteTable.java b/apps/route-service/app/src/main/java/org/onosproject/routeservice/store/DefaultRouteTable.java
index c24f005..2bacf07 100644
--- a/apps/route-service/app/src/main/java/org/onosproject/routeservice/store/DefaultRouteTable.java
+++ b/apps/route-service/app/src/main/java/org/onosproject/routeservice/store/DefaultRouteTable.java
@@ -202,7 +202,8 @@
public Collection<RouteSet> getRoutesForNextHops(Collection<IpAddress> nextHops) {
// First create a reduced snapshot of the store iterating one time the map
Map<String, Collection<? extends RawRoute>> filteredRouteStore = new HashMap<>();
- routes.values().stream()
+ routes.stream()
+ .map(Map.Entry::getValue)
.filter(r -> nextHops.contains(IpAddress.valueOf(r.nextHop())))
.forEach(r -> filteredRouteStore.computeIfAbsent(r.prefix, k -> {
// We need to get all the routes because the resolve logic