Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-14224

Total number of issues is invalid if there are more than 10'000

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: ElasticSearch, Web API
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Count on issues page stays at 10'000 if total number of issues exceeds that limit, although facets number remains correct.

      The cause of that bug is migration to Elasticsearch 7.X, which due performance improvements does not query for all count if not requested directly by a new property see.

      Solution:
      Use _count api to get total number of issues stored in ES or set trackTotalHits to true when on query builder

        Attachments

        1. facets.png
          facets.png
          2 kB
        2. number.png
          number.png
          1 kB

          Activity

            People

            • Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              jacek.poreda Jacek Poreda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: