Commit d06a02a
committed
Fix a race condition on parallel lookup of removed files
Test case:
1) mount the FS
2) create a file in it
3) remove that file using any other means (another parallel geesefs, aws-cli, Web UI...)
4) wait 1 minute (cache TTL)
5) without first re-reading the directory with that file, run:
`(for i in {1..20}; do echo "ls -l mnt/dir/abc &"; done; echo wait) | bash`
where mnt/dir/abc is your deleted file
6) observe geesefs crash with `panic: dir.removeName(abc) but child not found: 2`1 parent a2337a0 commit d06a02a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| 929 | + | |
| 930 | + | |
929 | 931 | | |
930 | 932 | | |
931 | 933 | | |
932 | 934 | | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
933 | 941 | | |
934 | 942 | | |
935 | 943 | | |
| |||
0 commit comments