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
fix(filer): check error from FindEntry (#7878)
steve.weie439e33888c8
diff --git a/weed/filer/filer.go b/weed/filer/filer.goindex 382eb644fe..b3114d1128 100644--- a/weed/filer/filer.go+++ b/weed/filer/filer.go@@ -2,6 +2,7 @@ package filerimport ("context"+ "errors""fmt""os""sort"@@ -262,7 +263,10 @@ func (f *Filer) ensureParentDirectoryEntry(ctx context.Context, entry *Entry, di// check the store directlyglog.V(4).InfofCtx(ctx, "find uncached directory: %s", dirPath)- dirEntry, _ := f.FindEntry(ctx, util.FullPath(dirPath))+ dirEntry, findErr := f.FindEntry(ctx, util.FullPath(dirPath))+ if findErr != nil && !errors.Is(findErr, filer_pb.ErrNotFound) {+ return findErr+ }// no such existing directoryif dirEntry == nil {