Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-3495

CacheMetrics.getAverage###Time is not calculated properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.6
    • 3.0
    • None

    Description

      CacheMetrics.getAverageGetTime, CacheMetrics.getAveragePutTime and CacheMetrics.getAverageRemoveTime are not calculated properly in the following scenario:

      • start a server node;
      • start a client node that will perform gets and puts;
      • CacheMetrics.getAverage###Time will always be 0 for the server node's cluster group.

      The issue happens because CacheMetricsImpl.add###TimeNanos method is not called on the server side when a metric related event happens.

      In the attache you can find source that showcases the bug.

      • start basic ExampleNodeStartup using attached configuration example-default.xml conjuration;
      • start ExampleNodeStartupClient. You will see that average metrics are not incremented.

      Attachments

        1. ExampleNodeStartupClient.java
          2 kB
          Denis A. Magda
        2. example-default.xml
          4 kB
          Denis A. Magda
        3. IGNITE_3495.patch
          3 kB
          Vladislav Pyatkov

        Issue Links

          Activity

            People

              NSAmelchev Nikita Amelchev
              dmagda Denis A. Magda
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: