Skip to content

Protect commits/:sha from many Gitaly timeouts

What does this MR do?

The GET /api/:version/repos/:namespace/:project/commits/:sha endpoint can receive many requests from Jira for the same sha which timeout #331326 (comment 644591676).

This is causing a noticeable latency spike on the endpoint.

Because certain SHAs reliably fail to return data #331326 (comment 641526740) and are frequently hit #331326 (comment 644591676), this change has the endpoint return an empty set of diff files for a day rather than continue to call Gitaly.

This will alleviate the endpoint from latency problems while we do an expected longer look into the underlying problem gitaly#3741 (closed).

#331326 (closed)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #331326 (closed)

Edited by Luke Duncalfe

Merge request reports