Merge "Bug 1593 - Flow Statistics manager is updating store with incorrect key Statis...
authorEd Warnicke <eaw@cisco.com>
Tue, 2 Sep 2014 11:52:44 +0000 (11:52 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 2 Sep 2014 11:52:44 +0000 (11:52 +0000)
commit9cd4e7995210f8381892004373acc71c8b3ae7af
tree02cb08f48a4744d1d0107e20fcd1ee2c276fc595
parent287b1d1ecec3264c192b1007019bfcadf6cb4311
parent156ff6a6f01d07dacbbc807f7b0deff41ac7ee2d
Merge "Bug 1593 - Flow Statistics manager is updating store with incorrect key Statistics manager cache the metadata related to stats data of all the entities (flow,group, meter,queue) like when was their respective stats were updated in operational data store. If statistics manager see that stats are not being updated from last two stats fetch cycle, it consider it stale and remove it. Object that it uses as keys for hash map cache contains some variant data (counters/durations) that varies in every stats fetch cycle. It creats duplicate entry in the cache for the same entity. After two fetch cycle statistics manager find old entry stale and removes it, but in actual that's not the case. This exception is thrown when it tries to remove the stats related to next duplicate entry (which was already removed ). Fixed it by using invariant key for caching the metadata to avoid the duplication."