You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the 1.txt file already exists in the DST NFS directory,juicefs sync error happened。
JuiceFS version: 1.2.0-rc1+2024-06-03.f5bf1d03e88
----cmd/sync.go ---- The bug may occur here
375 store, err := object.CreateStorage(name, endpoint, accessKey, secretKey, token)
376 if name == "nfs" && err != nil {
377 p := u.Path
378 for err != nil && strings.Contains(err.Error(), "MNT3ERR_NOENT") {
379 p = filepath.Dir(p)
380 store, err = object.CreateStorage(name, u.Host+p, accessKey, secretKey, token)
381 }
382 if err == nil {
383 store = object.WithPrefix(store, u.Path[len(p):])
384 }
385 }
When the 1.txt file already exists in the destination NFS directory, line 375 does not return an MNT3ERR_NOTDIR error as expected. Instead, it returns nil and the go-nfs-client proceeds to mount the NFS storage client normally, even in an abnormal situation. Subsequently, an error arises during the data copying process.
The text was updated successfully, but these errors were encountered:
When the 1.txt file already exists in the DST NFS directory,juicefs sync error happened。
----cmd/sync.go ---- The bug may occur here
375 store, err := object.CreateStorage(name, endpoint, accessKey, secretKey, token)
376 if name == "nfs" && err != nil {
377 p := u.Path
378 for err != nil && strings.Contains(err.Error(), "MNT3ERR_NOENT") {
379 p = filepath.Dir(p)
380 store, err = object.CreateStorage(name, u.Host+p, accessKey, secretKey, token)
381 }
382 if err == nil {
383 store = object.WithPrefix(store, u.Path[len(p):])
384 }
385 }
When the 1.txt file already exists in the destination NFS directory, line 375 does not return an MNT3ERR_NOTDIR error as expected. Instead, it returns nil and the go-nfs-client proceeds to mount the NFS storage client normally, even in an abnormal situation. Subsequently, an error arises during the data copying process.
The text was updated successfully, but these errors were encountered: