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
adjust logging
Chris Lu3cdb27fafccb
diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.goindex 6f4d449ff7..bd0e25c809 100644--- a/weed/server/filer_grpc_server.go+++ b/weed/server/filer_grpc_server.go@@ -133,6 +133,7 @@ func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntrchunks, garbages := filer2.CompactFileChunks(req.Entry.Chunks)if req.Entry.Attributes == nil {+ glog.V(3).Infof("CreateEntry %s: nil attributes", filepath.Join(req.Directory, req.Entry.Name))return nil, fmt.Errorf("can not create entry with empty attributes")}@@ -144,6 +145,8 @@ func (fs *FilerServer) CreateEntry(ctx context.Context, req *filer_pb.CreateEntrif err == nil {fs.filer.DeleteChunks(garbages)+ } else {+ glog.V(3).Infof("CreateEntry %s: %v", filepath.Join(req.Directory, req.Entry.Name), err)}return &filer_pb.CreateEntryResponse{}, err@@ -196,6 +199,8 @@ func (fs *FilerServer) UpdateEntry(ctx context.Context, req *filer_pb.UpdateEntrif err = fs.filer.UpdateEntry(ctx, entry, newEntry); err == nil {fs.filer.DeleteChunks(unusedChunks)fs.filer.DeleteChunks(garbages)+ } else {+ glog.V(3).Infof("UpdateEntry %s: %v", filepath.Join(req.Directory, req.Entry.Name), err)}fs.filer.NotifyUpdateEvent(entry, newEntry, true)@@ -240,9 +245,11 @@ func (fs *FilerServer) AssignVolume(ctx context.Context, req *filer_pb.AssignVol}assignResult, err := operation.Assign(fs.filer.GetMaster(), fs.grpcDialOption, assignRequest, altRequest)if err != nil {+ glog.V(3).Infof("AssignVolume: %v", err)return nil, fmt.Errorf("assign volume: %v", err)}if assignResult.Error != "" {+ glog.V(3).Infof("AssignVolume error: %v", assignResult.Error)return nil, fmt.Errorf("assign volume result: %v", assignResult.Error)}