I having SonarQube 5.1.2. Every so often analysis hangs. Below is the analysis log snippet at where it hangs.
[INFO] [11:41:24.995] Sensor CPD Sensor (done) | time=65ms
[INFO] [11:41:24.996] No quality gate is configured.
[INFO] [11:41:25.210] Execute decorators...
[INFO] [11:41:26.008] Store results in database
[INFO] [11:41:26.585] Analysis reports generated in 69ms, dir size=21 KB
[INFO] [11:41:26.630] Analysis reports compressed in 45ms, zip size=11 KB
In the log the last entry I see is following SQL,
2016.07.12 16:45:58 TRACE web[sql] time=0ms | sql=select ar.id from analysis_reports ar where ar.report_status=? and not exists(
select 1 from analysis_reports ar2 where ar.project_key = ar2.project_key and ar2.report_status=? ) order by ar.created_at asc, ar.id asc
Please suggest what is causing this.