Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3602

Cache statistics update differently in library and Client-Server mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.0.0.Final
    • 6.0.0.CR1
    • Core

    Description

      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.

      Attachments

        Activity

          People

            vblagoje Vladimir Blagojevic (Inactive)
            jholusa Jiří Holuša (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: