Bug 1016450

Summary: Cache statistics update differently in library and Client-Server mode
Product: [JBoss] JBoss Data Grid 6 Reporter: Jiri Holusa <jholusa>
Component: InfinispanAssignee: Vladimir Blagojevic <vblagoje>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jdg-bugs, mcimbora, rmarwaha, ttarrant
Target Milestone: ER3   
Target Release: 6.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-23 12:24:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Holusa 2013-10-08 08:15:29 UTC
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.

Comment 2 JBoss JIRA Server 2015-01-12 11:22:26 UTC
Tristan Tarrant <ttarrant> updated the status of jira ISPN-3602 to Resolved