-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SonarQube (6.7) analysis gets hung (stuck) in FindBugs sensor step #318
Comments
Could you take threaddump by |
Hello , |
Thanks. I found that the code is stacked around sonar-findbugs/src/main/java/org/sonar/plugins/findbugs/FindbugsConfiguration.java Lines 213 to 229 in d5f0330
I guess that we need to use the FileVisitor or streaming API to be more lazy.
|
Thanks @KengoTODA for looking into this. Couple of queries: a) Do you mean that the plugin's scanForAdditionalClasses needs certain refactoring? Could you please explain why the thread may be getting stuck? b) We did a couple of changes in the sonar-scanner-cli commandline: With these changes, the FindBugs sensor is not entering the "stuck/hung state". Instead it is logging a couple of WARNINGs and skipping execution: So, was setting the top-level directory "." as the sonar binaries path, the reason for the hung state? c) In the original issue description, Java files have been marked as excluded? Still why is FindBugs sensor getting triggered for analysis? Is it because .jsp was not added in the exclusion list? |
This means that, your project contains some
Not sure. Recheck your config. |
I'm still working in the branch issue-318, but I haven't finished integrated test due to slow network yet. |
@rngh101 I confirmed that the plugin itself is working, could you compare its performance with 4.0.0 in your env? You can build and install the plugin file like below: git clone [email protected]:spotbugs/sonar-findbugs.git
cd sonar-findbugs
git checkout issue-318
mvn package
cp target/sonar-findbugs-plugin.jar $SONARQUBE_HOME/extensions/plugins/ If we can confirm the performance improvement, I'll merge changes and release it as 4.0.1 (or later). |
Issue Description
While running SonarQube analysis of a multi-language large codebase project using sonar-scanner-cli, the analysis seems to be getting stuck in FindBugs sensor step. The analysis does not proceed either to successful completion, nor does it terminate abruptly with any error message. It stays hung.
To reduce the scope, we excluded a few languages like Java, Go, Perl, Typescript etc.
The analysis does not proceed further and stays stuck here.
Environment
The text was updated successfully, but these errors were encountered: