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

Hi,
Getting 2 number of issues please find the screen shot.

Hi,

Thanks for the screenshot.

I’ve flagged this for a more specialized look.

 
Ann

Hi all,

So, if I understand correctly, your project issues page shows only 2 Code Smells on New Code, whereas the project overview shows 5 Bugs on New Code. Is that the problem you’re trying to highlight? Because from all the screenshots of the issues page, I don’t see the problem (all numbers seem fine).

Did you see anything special in the logs (es.log, web.log, and ce.log, es.log probably being the most relevant here)?

Another thing you could try is making a cURL request to api/issues/reindex. This must be a POST request, and you should pass the key of your project. Example:

curl -v -u USER:PASSWORD -X POST http://my.sonarqube.com/api/issues/reindex?project=PROJECT_KEY

Hello there, Was there any resolution to this problem? I have been experiencing the same issue. I tried putting a new image (version 10.8.1 enterprise) which triggered reindexing but this has not resolved the matter. Curl request resulted in “301 Moved Permanently”. Any other suggestions you might have?

Hi @maciej.jakubiak,

You’ve resurrected a thread that’s been dormant for 5 months. Per the FAQ, please don’t do that. Please create a new thread with all your details.

 
Thx,
Ann