From: Ed Warnicke Date: Tue, 2 Sep 2014 11:52:44 +0000 (+0000) Subject: Merge "Bug 1593 - Flow Statistics manager is updating store with incorrect key Statis... X-Git-Tag: release/helium~167 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=9cd4e7995210f8381892004373acc71c8b3ae7af;hp=-c 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." --- 9cd4e7995210f8381892004373acc71c8b3ae7af