Skip to content

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.

add logs for writing to remote file

Chris Lucf1586a34d4a
diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go
index e24c8f9e64..07e91febc8 100644
--- a/weed/command/filer_remote_sync_dir.go
+++ b/weed/command/filer_remote_sync_dir.go
@@ -3,6 +3,10 @@ package command
import (
"context"
"fmt"
+ "os"
+ "strings"
+ "time"
+
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/pb"
@@ -13,9 +17,6 @@ import (
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/golang/protobuf/proto"
"google.golang.org/grpc"
- "os"
- "strings"
- "time"
)
func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *source.FilerSource, mountedDir string) error {
@@ -168,6 +169,7 @@ func retriedWriteFile(client remote_storage.RemoteStorageClient, filerSource *so
}
return nil
})
+ glog.Errorf("write to %s: %v", dest, err)
return
}