[infinispan-issues] [JBoss JIRA] (ISPN-2190) HotRod server returns incorrect ServerStatistics.TOTAL_NR_OF_ENTRIES after cache is cleared
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Wed Aug 22 10:55:15 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713074#comment-12713074 ]
Galder Zamarreño commented on ISPN-2190:
----------------------------------------
Wrong statistic, it's CURRENT_NR_OF_ENTRIES.
TOTAL_NR_OF_ENTRIES refers to the number of stores done in the server.
> HotRod server returns incorrect ServerStatistics.TOTAL_NR_OF_ENTRIES after cache is cleared
> -------------------------------------------------------------------------------------------
>
> Key: ISPN-2190
> URL: https://issues.jboss.org/browse/ISPN-2190
> Project: Infinispan
> Issue Type: Bug
> Components: Cache Server
> Affects Versions: 5.1.5.FINAL
> Reporter: Mircea Markus
> Assignee: Galder Zamarreño
> Labels: jdg, jdg6
> Fix For: 5.2.0.Alpha3, 5.2.0.Final
>
>
> After cache.clear() is invoked, the server should return 0 as ServerStatistics.TOTAL_NR_OF_ENTRIES. It actually returns the previous value before clear.
> I think its a serve (vs client) issue as it is reproductible on both java and c# clients.
> Here's a unit test to be added to HotRodStatisticsTest in order to reproduce the issue:
> {code}
> public void testNumberOfEntriesAfterClear() {
> assertEquals((Integer)0, remoteCache.stats().getIntStatistic(ServerStatistics.TOTAL_NR_OF_ENTRIES));
> remoteCache.put("k", "v");
> remoteCache.put("k2", "v");
> assertEquals((Integer)2, remoteCache.stats().getIntStatistic(ServerStatistics.TOTAL_NR_OF_ENTRIES));
> remoteCache.clear();
> assertEquals((Integer)0, remoteCache.stats().getIntStatistic(ServerStatistics.TOTAL_NR_OF_ENTRIES));
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list