Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-21750

DVCS connector doesn't support Gitlab rate limit properly when syncing data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 8.20.22, 9.4.6, 9.8.1
    • DVCS Connector

      Issue Summary

      This is reproducible on Data Center: YES

      Steps to Reproduce

      1. Create organisation in Gitlab (cloud/selfmanaged)
      2. Generate large repository ~ 100 branches * 100 commits on each branch
      3. In case of Gitlab self managed -> turn on rate limitation in Administrator panel
      4. Run Jira (In example 9.8.1 version)
      5. Create OAuth configuration for Jira <-> Gitlab
      6. Connect Jira via DVCS connector with Gitlab
      7. Wait for linking to finish process
      8. Run Full-Sync in DVCS for linked large repository
      9. Wait for synchronisation being finished

      Expected Results

      Synchronisation should work smoothly, or with some pause periods when Gitlab inform us with HTTP 429 about exceeding ratio limit.

      Actual Results

      DVCS doesn't respect/react on Retry-After header returned by gitlab, and keep asking instance for other changes. In effect DVCS makes unneeded HTTP traffic and populate log files with stack traces containing:

      Synchronization failed: Could not get changeset [commitSha] from https://gitlab.com/{further_url}

      Workaround

      One very inconvenient workaround is to link repositories one by one in DVCS UI panel and reduce simultaneously Git calls 

              Unassigned Unassigned
              1c017edd2c81 awojtasik
              Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: