Satish K
Committed by Gerrit Code Review

Resource Store Bug Fix: Query allocated resources based on consumer id always re…

…turn the Original continous resource value and not the allocated value of this consumer

Change-Id: I186a57783be1852c33d591c95b8ecebf32cfd56f
......@@ -138,6 +138,6 @@ class ConsistentContinuousResourceStore {
.flatMap(x -> x.value().allocations().stream()
.map(y -> Maps.immutableEntry(x.value().original(), y)))
.filter(x -> x.getValue().consumer().equals(consumer))
.map(x -> x.getKey());
.map(x -> (ContinuousResource) (x.getValue().resource()));
}
}
......