Geo: Git clone with --depth 1 times out when the secondary is not up-to-date (#391980) · Issues · GitLab.org / GitLab · GitLab (original) (raw)

Skip to content

Geo: Git clone with `--depth 1` times out when the secondary is not up-to-date

Customer ticket

A customer is noticing that git fetch from the Geo secondary randomly times out when the secondary is not up-to-date and the repo has to be proxied from the primary. They're on 15.8.3 and when the above condition is true, here's when it times out:

When --depth 1 is set during a git clone.

The customer reproduced the problem with the following steps:

I was able to replicate this behavior with 15.8.1 with the following steps:

GitLabBook2:tests$ git clone --depth 1 git@SECONDARY_HOST:test-projects/rails-custom.git
Cloning into 'rails-custom'...
remote:
remote: This request to a Geo secondary node will be forwarded to the
remote: Geo primary node:
remote:
remote:   git@PRIMARY_HOST:test-projects/rails-custom.git
remote:
^C

I had to ctrl+C after about 10 minutes. Once the repository replicated to the secondary, the same clone command succeeded in just a few seconds.

Edited Nov 15, 2023 by Michael Kozono