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 volume.tier.upload nil pointer panic (#5634)
NyaMistye1c671c02833
diff --git a/weed/shell/command_volume_tier_upload.go b/weed/shell/command_volume_tier_upload.goindex c109d59d8e..6932317abb 100644--- a/weed/shell/command_volume_tier_upload.go+++ b/weed/shell/command_volume_tier_upload.go@@ -139,6 +139,12 @@ func uploadDatToRemoteTier(grpcDialOption grpc.DialOption, writer io.Writer, volKeepLocalDatFile: keepLocalDatFile,})+ if stream == nil && copyErr == nil {+ // when the volume is already uploaded, VolumeTierMoveDatToRemote will return nil stream and nil error+ // so we should directly return in this case+ fmt.Fprintf(writer, "volume %v already uploaded", volumeId)+ return nil+ }var lastProcessed int64for {resp, recvErr := stream.Recv()