[infinispan-issues] [JBoss JIRA] (ISPN-3602) Cache statistics update differently in library and Client-Server mode

Tristan Tarrant (JIRA) issues at jboss.org
Fri Jan 9 18:00:03 EST 2015


     [ https://issues.jboss.org/browse/ISPN-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-3602:
----------------------------------
    Fix Version/s: 7.1.0.CR1
                       (was: 7.1.0.Beta1)


> Cache statistics update differently in library and Client-Server mode
> ---------------------------------------------------------------------
>
>                 Key: ISPN-3602
>                 URL: https://issues.jboss.org/browse/ISPN-3602
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 6.0.0.CR1
>            Reporter: Jiří Holuša
>            Assignee: Vladimir Blagojevic
>            Priority: Minor
>              Labels: dm
>             Fix For: 7.1.0.CR1
>
>
> When running jdg quickstart carmart ( https://github.com/infinispan/jdg-quickstart/tree/master/carmart ) I noticed interesting thing.
> When calling replace() in library mode, the number of stores in cache statistics doesn't change whereas when calling in Client-Server mode, the number of stores increase by 1.
> I went deeper into the code and I found out that in CacheMgmtInterceptor, where there are implemented methods for such statistics updates (like for put() ), there isn't implemented method for updating stats for replace() method, so the control flow is just passed.
> I think it should be consistent, but I don't know which approach is intended, if either increase by 1 or leave it the same.
> If increase is the answer than the solution is simple, implement CacheMgmtInterceptor.visitReplaceCommand(...) the same way as e.g. visitPutKeyValueCommand.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)



More information about the infinispan-issues mailing list