SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
stabilize FUSE git reset recovery (#8825)
Chris Luce02cf3c9d39
diff --git a/test/fuse_integration/git_operations_test.go b/test/fuse_integration/git_operations_test.goindex 66667d734f..2aae86c891 100644--- a/test/fuse_integration/git_operations_test.go+++ b/test/fuse_integration/git_operations_test.go@@ -431,6 +431,17 @@ func resetToCommitWithRecovery(t *testing.T, bareRepo, localClone, mountClone, c}continue}+ // Verify git commands actually work in the directory — the kernel+ // dcache can transiently show the dir then lose it after reset.+ if _, err := tryGitCommand(mountClone, "rev-parse", "HEAD"); err != nil {+ lastErr = fmt.Errorf("post-reset verification failed: %w", err)+ if attempt < maxAttempts {+ t.Logf("reset recovery attempt %d: %v — removing clone for re-create", attempt, lastErr)+ os.RemoveAll(mountClone)+ time.Sleep(2 * time.Second)+ }+ continue+ }return}require.NoError(t, lastErr, "git reset --hard %s failed after %d recovery attempts", commit, maxAttempts)