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
to read files that are quickly changing
Chris Lud75bc6219635
diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.goindex f45448a6e7..0d01a4a363 100644--- a/weed/filer/filechunk_manifest.go+++ b/weed/filer/filechunk_manifest.go@@ -101,7 +101,7 @@ func retriedFetchChunkData(urlStrings []string, cipherKey []byte, isGzipped boolfor waitTime := time.Second; waitTime < ReadWaitTime; waitTime += waitTime / 2 {for _, urlString := range urlStrings {- shouldRetry, err = util.ReadUrlAsStream(urlString, cipherKey, isGzipped, isFullChunk, offset, size, func(data []byte) {+ shouldRetry, err = util.ReadUrlAsStream(urlString+"?readDeleted=true", cipherKey, isGzipped, isFullChunk, offset, size, func(data []byte) {buffer.Write(data)})if !shouldRetry {diff --git a/weed/filer/stream.go b/weed/filer/stream.goindex 363b07f140..cffdc8303b 100644--- a/weed/filer/stream.go+++ b/weed/filer/stream.go@@ -181,7 +181,7 @@ func (c *ChunkStreamReader) fetchChunkToBuffer(chunkView *ChunkView) error {var buffer bytes.Buffervar shouldRetry boolfor _, urlString := range urlStrings {- shouldRetry, err = util.ReadUrlAsStream(urlString, chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size), func(data []byte) {+ shouldRetry, err = util.ReadUrlAsStream(urlString+"?readDeleted=true", chunkView.CipherKey, chunkView.IsGzipped, chunkView.IsFullChunk(), chunkView.Offset, int(chunkView.Size), func(data []byte) {buffer.Write(data)})if !shouldRetry {diff --git a/weed/replication/sink/s3sink/s3_write.go b/weed/replication/sink/s3sink/s3_write.goindex 45265d1ba1..b172ea2c37 100644--- a/weed/replication/sink/s3sink/s3_write.go+++ b/weed/replication/sink/s3sink/s3_write.go@@ -163,7 +163,7 @@ func (s3sink *S3Sink) buildReadSeeker(chunk *filer.ChunkView) (io.ReadSeeker, er}buf := make([]byte, chunk.Size)for _, fileUrl := range fileUrls {- _, err = util.ReadUrl(fileUrl, nil, false, false, chunk.Offset, int(chunk.Size), buf)+ _, err = util.ReadUrl(fileUrl+"?readDeleted=true", nil, false, false, chunk.Offset, int(chunk.Size), buf)if err != nil {glog.V(1).Infof("read from %s: %v", fileUrl, err)} else {