To reproduce :
- Analyze a project that generate some issues
- Analyze again the project but without generating any issue => All issues become closed
- Update the property "sonar.dbcleaner.daysBeforeDeletingClosedIssues" to 0
- Analyze again the project => All issues are removed from database but not from the Elasticsearch index.
As a consequence, In the "Issues" page, the number of closed issues of the project will be greater than 0, but clicking on the link won't display any issue (because issues are loading from databse).
NB : the purge of issues in the index is working when "sonar.dbcleaner.daysBeforeDeletingClosedIssues" is not set to 0.