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

Incorrect Calculation of Query Duration Metrics

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Currently, there is an issue with the calculation of query duration metric (searchQueryExecutionMaxTime) in the infinispan mbean for statistics. The metric being generated do not accurately reflect the actual query duration, leading to inaccurate performance analysis and misleading insights.

      The problem lies in the formula used to calculate query duration metrics
      In the BaseEmbeddedQuery class, specifically in the execute() method on line 82, the recordQuery function is called with only the startTime argument. However, it should actually be System.nanoTime() - startTime to align with the implementation in the IndexedQueryImpl class.

              fercoli@redhat.com Fabio Massimo Ercoli
              ttarrant@redhat.com Tristan Tarrant
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: