StatisticsManager "started" method may fail 28/828/1
authorGiovanni Meo <gmeo@cisco.com>
Thu, 8 Aug 2013 09:48:24 +0000 (11:48 +0200)
committerGiovanni Meo <gmeo@cisco.com>
Thu, 8 Aug 2013 09:48:24 +0000 (11:48 +0200)
commitcadd31f02f414c8f62ab0919d1966ec1fec8ebe0
tree96f903123135db6a65600c8f683a4777b48975b7
parentbf2bf3ea3e0b45f2ae7df27bf4634214add7c0ce
StatisticsManager "started" method may fail

"started" method in the
org.opendaylight.controller.statisticsmanager.internal.StatisticsManager
occasionally can fail to complete, this is because the method tries to
"put" data in clustered caches without checking if the value being
inserted is null or no. Infinispan caches in fact don't support null
value insertion and hence an exception is thrown preventing subsequent
calls to continue. The fix is make sure we don't insert NULL values.

Change-Id: I0037931d73e7e7df9535ef83509e770b45e81c72
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
opendaylight/statisticsmanager/implementation/src/main/java/org/opendaylight/controller/statisticsmanager/internal/StatisticsManager.java