Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-67351

JIRA JMX metrics mbeans return incorrect values

    XMLWordPrintable

Details

    Description

      Background:

      See Live monitoring using the JMX interface

      A list of metrics collected by JIRA is provided on this page.

      Current Behavior:

      Some metrics return invalid values.

      Example: entity.filters.total returns -1 due to encountering DataAccessException caused by invalid entityName.

      Incorrect values have been reproduced with: 

      • entity.filters.total
      • entity.groups.total
      • entity.users.total
      • issue.assigned.count
      • issue.search.count
      • issue.link.count
      • issue.worklogged.count

      Expected Behavior:

      JIRA JMX metrics mbeans return correct values

      Additional Details:

      Some invalid values caused by DataAccessException when retrieving count.

      • These metrics show -1 for the values. The value "-1" is returned when DataAccessException is encountered
              protected long computeValue() {
                  try {
                      return ComponentAccessor.getOfBizDelegator().getCount(entityName);
                  } catch (DataAccessException e) {
                      return -1;
                  }
      

      Attachments

        Issue Links

          Activity

            People

              morzechowski Michal Orzechowski (Inactive)
              tevans Tim Evans (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated: