Skip to content
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

[Question][sonar] sonar plugin can only collect a small percentage of the configured project data #8174

Open
blackholll opened this issue Oct 31, 2024 · 2 comments
Labels
component/plugins This issue or PR relates to plugins type/question This issue is a question

Comments

@blackholll
Copy link

Question

I configured a project and select about 900 sonar project as connections. then run the collection task, after task finish, there is only several sonar project's issue data.
I configured another devlake project with one of the missing sonar project, then can collect the data successfully.

There is no error log in task log, and I found the table '_raw_sonnarqube_api_issues' has no related record for those missing projects.
I tried reduce the connection calling frequency from the default value 10000 to 3000, also can not get more result.
I also write a script calling the issue list api with the same sonar token hundreds of times, all success.

Screenshots

Additional context

@blackholll blackholll added the type/question This issue is a question label Oct 31, 2024
@dosubot dosubot bot added the component/plugins This issue or PR relates to plugins label Oct 31, 2024
Copy link

dosubot bot commented Oct 31, 2024

Hey @blackholll! I'm here to help you with any bugs, questions, or contributions. Let's get to the bottom of this together!

I found a similar closed issue that might be relevant to your situation: [Bug][SonarQube] failed to collect over 10000 data for issue](#4592). This issue was resolved by a pull request that addressed the problem by dividing the issues into smaller groups to avoid exceeding the SonarQube API's result limit of 10,000 issues [1].

The SonarQube plugin has certain limitations and configurations that might affect data collection for a large number of projects. Specifically, the plugin must divide issues into smaller groups based on "severity", "status", "type", "createdBefore", "createdAfter", and the file to which the issue belongs to manage within the API limits [2].

Additionally, the default setting for connection calling frequency is 10,000 requests per hour, which can be adjusted to change the collection speed [3]. However, reducing the frequency might not necessarily increase the amount of data collected if the issue is related to API limits or data classification.

If you haven't already, you might want to ensure that the issues are being classified and collected according to these parameters to see if it resolves the problem.

To continue talking to Dosu, mention @dosu.

@blackholll
Copy link
Author

I am using v1.0.2-beta2
the projects' issue record all less than 10000
I already set the request frequency to 3000,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugins This issue or PR relates to plugins type/question This issue is a question
Projects
None yet
Development

No branches or pull requests

1 participant