Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Hi, when launching multiple clojure processes with the same remote git coordinate, there seems to be concurrency issues when cloning the git repository.

In this particular case, I was using node foreman to launch 2 or 3 different development workflows in parallel. One process would win and successfully clone the repo, while all others would fail with various errors. Once the git repo is successfully cloned, processes will run concurrently without issue.

The workaround is to manually launch processes so that the git repo can be successfully cloned first. But not having to worry about the concurrency issues would be nice. I was wondering if this would be considered an issue, or if my expectations or usage are off.

My clojure version is:

Clojure CLI version 1.10.3.822

My git version is:

git version 2.20.1 (Apple Git-117)

I have included two gists that contain log output of three different kinds of errors. The processes were run with the follow set:

export GITLIBS_DEBUG=true
  1. https://gist.github.com/zalky/e562a9da8f4a6c1890116c8a05d53dde
  2. https://gist.github.com/zalky/ac7c0ace34f27d289c93c70daba99acc

Happy to provide more detail if it would help.

1 Answer

0 votes
by
edited by

Thanks, this is helpful. I'll take a look at it later this week. I think there are some steps we can take to make this more resilient.

Logged as https://clojure.atlassian.net/browse/TDEPS-180

...