From 80666236e76bf08880ca6ffe7b1020f4d31c3f76 Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Tue, 8 Oct 2024 17:13:55 +0200 Subject: [PATCH] The noocache bug workaround has to be always active --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 56049f9..0acb0a7 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,6 @@ import ( "os/user" "path" "path/filepath" - "slices" "strconv" "strings" "sync" @@ -411,8 +410,9 @@ func (d *ofsDriver) Mount(r *volume.MountRequest) (*volume.MountResponse, error) // the mount point is properly initialized. If we check too early then something breaks in the // mount.objectivefs process and the mount forever stays in startup state returning "Input/output error" // for any filesystem interaction from us or other tools. + // UPDATE: The bug seems present also without "noocache" if S3 connection is fast enough // HACK: Due to the bug we just wait a safe interval - if i == 0 && slices.Contains(v.Opts, "noocache") { + if i == 0 /*&& slices.Contains(v.Opts, "noocache")*/ { time.Sleep(1000 * time.Millisecond) } if isObjfs, err := isObjectiveFsMount(mountPath); err == nil && isObjfs {