Hello,
I have a Gradle project where I’m using Sonarqube scanner for Gradle (version 2.6.2). My SonarQube server is version 7.0. But, I have had this issue with Sonarqube server 6.5 and lower version of Gradle Scanner also.
The problem is isolated to a single project. This project is relatively small. It takes less than 5 minutes to compile and build the project. Sonarqube scan also takes about 5 minutes to finish, when it works.
Occasionally (seems often lately), the sonarqube task is failing after running for about 20 - 25 minutes. When it fails, it has following JOURNAL_FLUSHER warnings at the end:
[JOURNAL_FLUSHER] WARNING Journal flush operation took 4,411ms last 8 cycles average is 551ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 43,547ms last 8 cycles average is 5,994ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 35,993ms last 8 cycles average is 9,942ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 8,565ms last 8 cycles average is 1,070ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 51,592ms last 8 cycles average is 6,449ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 13,225ms last 8 cycles average is 8,102ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 15,825ms last 8 cycles average is 1,978ms
[JOURNAL_FLUSHER] WARNING Journal flush operation took 21,959ms last 8 cycles average is 4,723ms
:sonarqube FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sonarqube'.
> Can not execute Findbugs with a timeout threshold value of 600000 milliseconds
I tried increasing the timeout value for this project in Sonarqube server, but that doesn’t seem to help. As I mentioned, sometimes it works just fine and finishes within 5 minutes. Also, the issue is not isolated to a single machine. This failure happens randomly when sonarqube task is run by the CI process, which uses one of several build servers.
I have this same process (Gradle based build) for several other java projects and they never have this issue. This is the only project that is causing issue.
Has anyone ran into this before? I have been googling about this but didn’t find something that I could follow along. If you have experience dealing with this issue, would you be able to shed some light on how to debug the issue and find the root cause?