From 3be96e60b0cf169c055c719d4b111d9c061fedd5 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Sat, 3 Oct 2020 03:52:33 +0000 Subject: [PATCH] initial report on rm failing to remove cache/locales --- ...t-annex__47__locales__47____96___dirs.mdwn | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn diff --git a/doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn b/doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn new file mode 100644 index 0000000000..dfb1ed6389 --- /dev/null +++ b/doc/bugs/standalone_runshell_can_race_and_fail_to_remove___96____126____47__.cache__47__git-annex__47__locales__47____96___dirs.mdwn @@ -0,0 +1,34 @@ +### Please describe the problem. + +Originally reported against datalad [#4976](https://github.com/datalad/datalad/issues/4976). Ran into it again and decided to reproduce by simply trying to make `git config` in parallel (they should not crash, right?) and it brings to the same problem reported + +```shell +#!/bin/bash + +set -eu +export PS4='> ' +set -x +cd "$(mktemp -d ${TMPDIR:-/tmp}/dl-XXXXXXX)" + +which git +grep runshell `which git` + +git init +git annex init + +for s in {1..30}; do + git config annex.version & +done +wait + +``` + +I also wonder if it is possible to avoid dealing with locales upon **every** invocation of git/git-annex? couldn't it be done just once e.g. per installed annex? (sorry if we had this discussion already, but it feels not yet resolved optimally). + +### What version of git-annex are you using? On what operating system? + +`8.20200908-gcfc74c2f4` + + +[[!meta author=yoh]] +[[!tag projects/datalad]]