Incorrect issue counts after upgrade to SonarQube 8.9.7 LTS

Hello, after upgrade to SonarQube 8.9.7 LTS (from version 7.x), we have trouble with display of issues in SonarQube UI. We see different numbers of issues in the left panel, then is displayed on the right side. E.g. left panel says there is 1 blocker issue, but after clicking on the Blocker severity there, the list of issues on the right displays no issues (and says “0 of 1 shown” in the bottom). Similarly for Major issues, it says there should be 9 of them, but displays only 4.
Can you please advise how to solve this?
Best regards,
Tomas Hansut

Hi,

Welcome to the community!

This sounds like a corrupted Elasticsearch index. Try:

  • stop the server
  • delete $SONARQUBE-HOME/data/es7
  • restart the server

The ES indices will be rebuilt automatically and that should fix the problem. But feel free to come back to us if it doesn’t.

 
HTH,
Ann