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
[s3] fix checksum algorithm CRC64NVMe (#6722)
Konstantin Lebedev8c1cb203fadd
diff --git a/go.mod b/go.modindex 858c733252..7607cb5688 100644--- a/go.mod+++ b/go.mod@@ -138,6 +138,7 @@ require (github.com/hanwen/go-fuse/v2 v2.7.2github.com/hashicorp/raft v1.7.3github.com/hashicorp/raft-boltdb/v2 v2.3.1+ github.com/minio/crc64nvme v1.0.1github.com/orcaman/concurrent-map/v2 v2.0.1github.com/parquet-go/parquet-go v0.24.0github.com/rabbitmq/amqp091-go v1.10.0@@ -268,7 +269,7 @@ require (github.com/josharian/intern v1.0.0 // indirectgithub.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7 // indirectgithub.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect- github.com/klauspost/cpuid/v2 v2.2.8 // indirect+ github.com/klauspost/cpuid/v2 v2.2.9 // indirectgithub.com/koofr/go-httpclient v0.0.0-20240520111329-e20f8f203988 // indirectgithub.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirectgithub.com/kr/fs v0.1.0 // indirectdiff --git a/go.sum b/go.sumindex 57e557f2ac..a1eee2b0a8 100644--- a/go.sum+++ b/go.sum@@ -1240,8 +1240,8 @@ github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Ztgithub.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=-github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM=-github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=+github.com/klauspost/cpuid/v2 v2.2.9 h1:66ze0taIn2H33fBvCkXuv9BmCwDfafmiIVpKV9kKGuY=+github.com/klauspost/cpuid/v2 v2.2.9/go.mod h1:rqkxqrZ1EhYM9G+hXH7YdowN5R5RGN6NK4QwQ3WMXF8=github.com/klauspost/reedsolomon v1.12.4 h1:5aDr3ZGoJbgu/8+j45KtUJxzYm8k08JGtB9Wx1VQ4OA=github.com/klauspost/reedsolomon v1.12.4/go.mod h1:d3CzOMOt0JXGIFZm1StgkyF14EYr3xneR2rNWo7NcMU=github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=@@ -1301,6 +1301,8 @@ github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY=github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=+github.com/minio/crc64nvme v1.0.1 h1:DHQPrYPdqK7jQG/Ls5CTBZWeex/2FMS3G5XGkycuFrY=+github.com/minio/crc64nvme v1.0.1/go.mod h1:eVfm2fAzLlxMdUGc0EEBGSMmPwmXD5XiNRpnu9J3bvg=github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=diff --git a/weed/s3api/chunked_reader_v4.go b/weed/s3api/chunked_reader_v4.goindex a69319500c..d8fdc75252 100644--- a/weed/s3api/chunked_reader_v4.go+++ b/weed/s3api/chunked_reader_v4.go@@ -29,7 +29,6 @@ import ("fmt""hash""hash/crc32"- "hash/crc64""io""net/http""time"@@ -39,6 +38,7 @@ import ("github.com/seaweedfs/seaweedfs/weed/s3api/s3err""github.com/dustin/go-humanize"+ "github.com/minio/crc64nvme")// calculateSeedSignature - Calculate seed signature in accordance with@@ -674,7 +674,7 @@ func getCheckSumWriter(checksumAlgorithm ChecksumAlgorithm) hash.Hash {case ChecksumAlgorithmCRC32C:return crc32.New(crc32.MakeTable(crc32.Castagnoli))case ChecksumAlgorithmCRC64NVMe:- return crc64.New(crc64.MakeTable(crc64.ISO))+ return crc64nvme.New()case ChecksumAlgorithmSHA1:return sha1.New()case ChecksumAlgorithmSHA256: