BUG count mismatch due to corrupt Elasticsearch index - SonarQube Index Clean up

Hi Team,
we are using sonarqube EE Version 9.9.
we performed below steps for index cleanup to fix corrupt Elasticsearch index.

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

but still the issue is not fixed. still the bug count also mismatching from time to time.
kindly suggest a way to fix this issue.

we found similar issue - link Issues only shown on overview tab and as a count on the code tab, but not on issues tab - #2 by ganncamp

if you upgrade to latest version will it fix this mismatch in bug count.

Hi,

Welcome to the community!

Could you share a little more about where you do and where you don’t see the issues? Maybe even some screenshots? :smiley:

 
Ann

Hi @Shivaji_Desai,

Welcome to the community!

Do you work with the OP?

 
Ann

Hi Ann ,
Please explain what OP means?

we are using sonarqube EE Version 9.9.
we performed below steps for index cleanup to fix mismatch in the bug count.

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

but still the issue is not fixed. still the bug count also mismatching from time to time.
kindly suggest a way to fix this issue.

we found similar issue - link Issues only shown on overview tab and as a count on the code tab, but not on issues tab - #2 by ganncamp

if we upgrade to latest version will it fix this mismatch in bug count.

Hi,

‘OP’ is ‘original poster’ or ‘original post’ depending on the context. Do you work together?

 
Ann

yes we like to

Hi,

Thanks for the confirmation.

So you’ve shown me one half of the equation with the bug count on the project homepage. Can you show me where they’re missing?

 
Ann

bug count mismatch varies from time to time Ann ,currently is unable to capture it . but the link which we have shared gives more information.please refer once .

what we need to make sure is - if there is any issue with the current sonar verions EE 9.9.please suggest us an higher version would solve this issue?

Hi,

Neither of the links you’ve provided gives insight into your situation. The next time you encounter this, please provide screenshots of both where the issues do show up and where they don’t.

 
Ann

please find the screen shot for difference in number of issues and number of code smells

Hi,

Could I have a fuller picture of the issues page? I’d like to see the filters on the left.

 
Ann

Hi,

Could you please include the left side of that page?

 
Thx,
Ann

Hi ,
please find the filter screen shot

Hi,

Could I please have one screenshot, redacted as necessary, of your entire issues page?

 
Ann

Entire page screen shot

Hi,

That “Clear All Filters” button doesn’t show up unless you have filters applied. What happens when you click that button?

 
Ann

please find screenshot after clearing the filters

Hi,

Thanks for the screenshot. So we see there are ~64k issues overall. If you re-click the ‘Issues in new code’ filter and nothing else, what do you get?

 
Ann