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
filer: Elastic Search return correct kv error
Chris Lu44b3f2efc8e9
diff --git a/weed/filer/elastic/v7/elastic_store_kv.go b/weed/filer/elastic/v7/elastic_store_kv.goindex cfb3fdf8cd..1b26bdf8e6 100644--- a/weed/filer/elastic/v7/elastic_store_kv.go+++ b/weed/filer/elastic/v7/elastic_store_kv.go@@ -3,9 +3,9 @@ package elasticimport ("context""fmt"+ "github.com/chrislusf/seaweedfs/weed/filer""github.com/chrislusf/seaweedfs/weed/glog"- "github.com/chrislusf/seaweedfs/weed/pb/filer_pb"jsoniter "github.com/json-iterator/go"elastic "github.com/olivere/elastic/v7")@@ -32,7 +32,7 @@ func (store *ElasticStore) KvGet(ctx context.Context, key []byte) (value []byte,Id(string(key)).Do(ctx)if elastic.IsNotFound(err) {- return nil, filer_pb.ErrNotFound+ return nil, filer.ErrKvNotFound}if searchResult != nil && searchResult.Found {esEntry := &ESKVEntry{}@@ -41,7 +41,7 @@ func (store *ElasticStore) KvGet(ctx context.Context, key []byte) (value []byte,}}glog.Errorf("find key(%s),%v.", string(key), err)- return nil, filer_pb.ErrNotFound+ return nil, filer.ErrKvNotFound}func (store *ElasticStore) KvPut(ctx context.Context, key []byte, value []byte) (err error) {