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
change log level 5 to 4
Chris Lua41588279a10
diff --git a/weed/filer2/reader_at.go b/weed/filer2/reader_at.goindex c22f20379a..0cea83ff9d 100644--- a/weed/filer2/reader_at.go+++ b/weed/filer2/reader_at.go@@ -129,7 +129,7 @@ func (c *ChunkReadAt) readFromWholeChunkData(chunkView *ChunkView) (chunkData []chunkData = c.chunkCache.GetChunk(chunkView.FileId, chunkView.ChunkSize)if chunkData != nil {- glog.V(5).Infof("cache hit %s [%d,%d)", chunkView.FileId, chunkView.LogicOffset-chunkView.Offset, chunkView.LogicOffset-chunkView.Offset+int64(len(chunkData)))+ glog.V(4).Infof("cache hit %s [%d,%d)", chunkView.FileId, chunkView.LogicOffset-chunkView.Offset, chunkView.LogicOffset-chunkView.Offset+int64(len(chunkData)))} else {glog.V(4).Infof("doFetchFullChunkData %s", chunkView.FileId)chunkData, err = c.doFetchFullChunkData(chunkView.FileId, chunkView.CipherKey, chunkView.IsGzipped)diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex 108b6832a7..d40dfd2cb9 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -63,7 +63,7 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error {attr.Gid = dir.entry.Attributes.Gidattr.Uid = dir.entry.Attributes.Uid- glog.V(5).Infof("dir Attr %s, attr: %+v", dir.FullPath(), attr)+ glog.V(4).Infof("dir Attr %s, attr: %+v", dir.FullPath(), attr)return nil}@@ -222,7 +222,7 @@ func (dir *Dir) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, errfunc (dir *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (node fs.Node, err error) {- glog.V(5).Infof("dir Lookup %s: %s by %s", dir.FullPath(), req.Name, req.Header.String())+ glog.V(4).Infof("dir Lookup %s: %s by %s", dir.FullPath(), req.Name, req.Header.String())fullFilePath := util.NewFullPath(dir.FullPath(), req.Name)dirPath := util.FullPath(dir.FullPath())@@ -241,7 +241,7 @@ func (dir *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.return nil, fuse.ENOENT}} else {- glog.V(5).Infof("dir Lookup cache hit %s", fullFilePath)+ glog.V(4).Infof("dir Lookup cache hit %s", fullFilePath)}if entry != nil {@@ -269,7 +269,7 @@ func (dir *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {- glog.V(5).Infof("dir ReadDirAll %s", dir.FullPath())+ glog.V(4).Infof("dir ReadDirAll %s", dir.FullPath())processEachEntryFn := func(entry *filer_pb.Entry, isLast bool) error {fullpath := util.NewFullPath(dir.FullPath(), entry.Name)@@ -434,7 +434,7 @@ func (dir *Dir) Listxattr(ctx context.Context, req *fuse.ListxattrRequest, resp}func (dir *Dir) Forget() {- glog.V(5).Infof("Forget dir %s", dir.FullPath())+ glog.V(4).Infof("Forget dir %s", dir.FullPath())dir.wfs.fsNodeCache.DeleteFsNode(util.FullPath(dir.FullPath()))}diff --git a/weed/filesys/dirty_page.go b/weed/filesys/dirty_page.goindex 562aaff9dc..1ab7d0961c 100644--- a/weed/filesys/dirty_page.go+++ b/weed/filesys/dirty_page.go@@ -29,7 +29,7 @@ var counter = int32(0)func (pages *ContinuousDirtyPages) AddPage(offset int64, data []byte) (chunks []*filer_pb.FileChunk, err error) {- glog.V(5).Infof("%s AddPage [%d,%d) of %d bytes", pages.f.fullpath(), offset, offset+int64(len(data)), pages.f.entry.Attributes.FileSize)+ glog.V(4).Infof("%s AddPage [%d,%d) of %d bytes", pages.f.fullpath(), offset, offset+int64(len(data)), pages.f.entry.Attributes.FileSize)if len(data) > int(pages.f.wfs.option.ChunkSizeLimit) {// this is more than what buffer can hold.diff --git a/weed/filesys/file.go b/weed/filesys/file.goindex ac0dd6a805..d2117bfbbd 100644--- a/weed/filesys/file.go+++ b/weed/filesys/file.go@@ -45,7 +45,7 @@ func (file *File) fullpath() util.FullPath {func (file *File) Attr(ctx context.Context, attr *fuse.Attr) error {- glog.V(5).Infof("file Attr %s, open:%v, existing attr: %+v", file.fullpath(), file.isOpen, attr)+ glog.V(4).Infof("file Attr %s, open:%v, existing attr: %+v", file.fullpath(), file.isOpen, attr)if file.isOpen <= 0 {if err := file.maybeLoadEntry(ctx); err != nil {@@ -99,7 +99,7 @@ func (file *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.Opfunc (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error {- glog.V(5).Infof("%v file setattr %+v", file.fullpath(), req)+ glog.V(4).Infof("%v file setattr %+v", file.fullpath(), req)if err := file.maybeLoadEntry(ctx); err != nil {return err@@ -245,7 +245,7 @@ func (file *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error {func (file *File) Forget() {t := util.NewFullPath(file.dir.FullPath(), file.Name)- glog.V(5).Infof("Forget file %s", t)+ glog.V(4).Infof("Forget file %s", t)file.wfs.fsNodeCache.DeleteFsNode(t)}diff --git a/weed/filesys/meta_cache/meta_cache_init.go b/weed/filesys/meta_cache/meta_cache_init.goindex f5d633120b..05983ec7d3 100644--- a/weed/filesys/meta_cache/meta_cache_init.go+++ b/weed/filesys/meta_cache/meta_cache_init.go@@ -14,7 +14,7 @@ func EnsureVisited(mc *MetaCache, client filer_pb.FilerClient, dirPath util.Fullmc.visitedBoundary.EnsureVisited(dirPath, func(path util.FullPath) (childDirectories []string, err error) {- glog.V(5).Infof("ReadDirAllEntries %s ...", path)+ glog.V(4).Infof("ReadDirAllEntries %s ...", path)err = filer_pb.ReadDirAllEntries(client, dirPath, "", func(pbEntry *filer_pb.Entry, isLast bool) error {entry := filer2.FromPbEntry(string(dirPath), pbEntry)diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.goindex 44c2895d3b..93819dfa49 100644--- a/weed/filesys/wfs.go+++ b/weed/filesys/wfs.go@@ -148,7 +148,7 @@ func (wfs *WFS) ReleaseHandle(fullpath util.FullPath, handleId fuse.HandleID) {// Statfs is called to obtain file system metadata. Implements fuse.FSStatfserfunc (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.StatfsResponse) error {- glog.V(5).Infof("reading fs stats: %+v", req)+ glog.V(4).Infof("reading fs stats: %+v", req)if wfs.stats.lastChecked < time.Now().Unix()-20 {@@ -160,13 +160,13 @@ func (wfs *WFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.Ttl: fmt.Sprintf("%ds", wfs.option.TtlSec),}- glog.V(5).Infof("reading filer stats: %+v", request)+ glog.V(4).Infof("reading filer stats: %+v", request)resp, err := client.Statistics(context.Background(), request)if err != nil {glog.V(0).Infof("reading filer stats %v: %v", request, err)return err}- glog.V(5).Infof("read filer stats: %+v", resp)+ glog.V(4).Infof("read filer stats: %+v", resp)wfs.stats.TotalSize = resp.TotalSizewfs.stats.UsedSize = resp.UsedSizediff --git a/weed/filesys/wfs_deletion.go b/weed/filesys/wfs_deletion.goindex 210ae1ba4f..84e903d17f 100644--- a/weed/filesys/wfs_deletion.go+++ b/weed/filesys/wfs_deletion.go@@ -48,7 +48,7 @@ func (wfs *WFS) deleteFileIds(grpcDialOption grpc.DialOption, client filer_pb.Sem := make(map[string]operation.LookupResult)- glog.V(5).Infof("deleteFileIds lookup volume id locations: %v", vids)+ glog.V(4).Infof("deleteFileIds lookup volume id locations: %v", vids)resp, err := client.LookupVolume(context.Background(), &filer_pb.LookupVolumeRequest{VolumeIds: vids,})diff --git a/weed/pb/filer_pb/filer_client.go b/weed/pb/filer_pb/filer_client.goindex ce965d0134..8ff276ab75 100644--- a/weed/pb/filer_pb/filer_client.go+++ b/weed/pb/filer_pb/filer_client.go@@ -83,7 +83,7 @@ func doList(filerClient FilerClient, fullDirPath util.FullPath, prefix string, fInclusiveStartFrom: inclusive,}- glog.V(5).Infof("read directory: %v", request)+ glog.V(4).Infof("read directory: %v", request)ctx, cancel := context.WithCancel(context.Background())stream, err := client.ListEntries(ctx, request)if err != nil {diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.goindex 579b30a6a0..d310a27d46 100644--- a/weed/server/master_grpc_server.go+++ b/weed/server/master_grpc_server.go@@ -87,7 +87,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServdn.UpAdjustMaxVolumeCountDelta(delta)}- glog.V(5).Infof("master received heartbeat %s", heartbeat.String())+ glog.V(4).Infof("master received heartbeat %s", heartbeat.String())message := &master_pb.VolumeLocation{Url: dn.Url(),PublicUrl: dn.PublicUrl,diff --git a/weed/server/volume_grpc_client_to_master.go b/weed/server/volume_grpc_client_to_master.goindex 468429db82..3a1b95f26e 100644--- a/weed/server/volume_grpc_client_to_master.go+++ b/weed/server/volume_grpc_client_to_master.go@@ -169,16 +169,16 @@ func (vs *VolumeServer) doHeartbeat(masterNode, masterGrpcAddress string, grpcDi}case <-volumeTickChan:if vs.SendHeartbeat {- glog.V(5).Infof("volume server %s:%d heartbeat", vs.store.Ip, vs.store.Port)+ glog.V(4).Infof("volume server %s:%d heartbeat", vs.store.Ip, vs.store.Port)if err = stream.Send(vs.store.CollectHeartbeat()); err != nil {glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", masterNode, err)return "", err}} else {- glog.V(5).Infof("volume server %s:%d skip send heartbeat", vs.store.Ip, vs.store.Port)+ glog.V(4).Infof("volume server %s:%d skip send heartbeat", vs.store.Ip, vs.store.Port)}case <-ecShardTickChan:- glog.V(5).Infof("volume server %s:%d ec heartbeat", vs.store.Ip, vs.store.Port)+ glog.V(4).Infof("volume server %s:%d ec heartbeat", vs.store.Ip, vs.store.Port)if err = stream.Send(vs.store.CollectErasureCodingHeartbeat()); err != nil {glog.V(0).Infof("Volume Server Failed to talk with master %s: %v", masterNode, err)return "", errdiff --git a/weed/util/chunk_cache/chunk_cache.go b/weed/util/chunk_cache/chunk_cache.goindex a1a054215d..2b0c635a19 100644--- a/weed/util/chunk_cache/chunk_cache.go+++ b/weed/util/chunk_cache/chunk_cache.go@@ -94,7 +94,7 @@ func (c *TieredChunkCache) SetChunk(fileId string, data []byte) {c.Lock()defer c.Unlock()- glog.V(5).Infof("SetChunk %s size %d\n", fileId, len(data))+ glog.V(4).Infof("SetChunk %s size %d\n", fileId, len(data))c.doSetChunk(fileId, data)}