Skip to content

[BitbucketServerImport] Reduce pull requests batch size to 50

Vasilii Iakliushin requested to merge reduce_pull_requests_batch_limit into master

What does this MR do and why?

Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/456416

Problem

PullRequestsImporter can fetch missing commits for closed or merged pull requests. However, it can lead to large requests and raises a Gitaly exception.

Gitlab::Git::ResourceExhaustedError received metadata size exceeds soft limit (10009 vs. 8192)

Solution

Decrease the number of fetches pull requests in the batch.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports