Metadata
- Source
- INFRA-112
- Type
- Task
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Giovanni Tirloni
- Reporter
- Justin Obara
- Created
2018-02-08T09:26:50.872-0500 - Updated
2018-02-19T10:03:35.189-0500 - Versions
- N/A
- Fixed Versions
- N/A
- Component
- N/A
Description
DVCS accounts in Jira are very slow to sync (and PRs are going unnoticed).
Comments
-
Giovanni Tirloni commented
2018-02-08T09:29:02.810-0500 We are being rate-limited by GitHub
2018-02-07 20:04:21,608 DVCSConnector.EventService:thread-1 INFO ServiceRunner [c.a.j.p.dvcs.service.RepositoryServiceImpl] Could not load user [jhung, jhung] - java.lang.RuntimeException: org.eclipse.egit.github.core.client.RequestException: API rate limit exceeded for gtirloni. (403) ... 2018-02-07 22:09:18,846 DVCSConnector.MessageExecutor:thread-1 ERROR ServiceRunner [c.a.j.p.d.service.message.MessageConsumer] Github rate limit exceeded, requests: 5000, remaining requests: 0, reset time: 2018-02-07T22:13:38.000Z
-
Giovanni Tirloni commented
2018-02-08T09:29:58.772-0500 https://developer.github.com/apps/building-github-apps/rate-limits-for-github-apps/
GitHub Apps use the installation's minimum rate limit of 5,000 requests per hour. Organization installations with more than 20 users receive another 50 requests per hour for each user. Installations that have more than 20 repositories receive another 50 requests per hour for each repository.
-
Giovanni Tirloni commented
2018-02-08T09:33:38.685-0500 https://confluence.atlassian.com/jirakb/dvcs-github-sync-failed-779160781.html
I've added the dark feature "dvcs.connector.pr-synchronization.disabled" and will remove it tomorrow. The rate limits should be okay by then.
-
Giovanni Tirloni commented
2018-02-09T06:01:58.295-0500 After stopping GitHub polling, it seems we're not rate limited anymore. FLOE-535 is showing the merged PR now.
@@Justin Obara could you confirm everything is okay? It seems it might take up to 60min to get a PR reflected in JIRA (if we're not rate limited).
I also updated JIRA to version 7.7.1 and it might help with that (as there are some fixes for DVCS in it).
-
Giovanni Tirloni commented
2018-02-19T10:03:35.117-0500 It seems all PRs synced. I cannot see any errors related to GitHub since the JIRA instance was restarted a few days ago.