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
better error message
Chris Luecaa30c4087b
diff --git a/weed/filer/mongodb/mongodb_store.go b/weed/filer/mongodb/mongodb_store.goindex 57d9a031d7..104d1f9e28 100644--- a/weed/filer/mongodb/mongodb_store.go+++ b/weed/filer/mongodb/mongodb_store.go@@ -109,6 +109,10 @@ func (store *MongodbStore) InsertEntry(ctx context.Context, entry *filer.Entry)Meta: meta,})+ if err != nil {+ return fmt.Errorf("InsertEntry %st: %v", entry.FullPath, err)+ }+return nil}@@ -124,6 +128,7 @@ func (store *MongodbStore) FindEntry(ctx context.Context, fullpath util.FullPathvar where = bson.M{"directory": dir, "name": name}err = store.connect.Database(store.database).Collection(store.collectionName).FindOne(ctx, where).Decode(&data)if err != mongo.ErrNoDocuments && err != nil {+ glog.Error("find %s: %v", fullpath, err)return nil, filer_pb.ErrNotFound}