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
changing FindEntry error handling in cassandra store (#6015)
Aleksey Kosov7340c62c474f
diff --git a/weed/filer/cassandra/cassandra_store.go b/weed/filer/cassandra/cassandra_store.goindex b13a50fd3b..6ced587760 100644--- a/weed/filer/cassandra/cassandra_store.go+++ b/weed/filer/cassandra/cassandra_store.go@@ -2,6 +2,7 @@ package cassandraimport ("context"+ "errors""fmt""github.com/gocql/gocql""time"@@ -129,13 +130,10 @@ func (store *CassandraStore) FindEntry(ctx context.Context, fullpath util.FullPaif err := store.session.Query("SELECT meta FROM filemeta WHERE directory=? AND name=?",dir, name).Scan(&data); err != nil {- if err != gocql.ErrNotFound {+ if errors.Is(err, gocql.ErrNotFound) {return nil, filer_pb.ErrNotFound}- }-- if len(data) == 0 {- return nil, filer_pb.ErrNotFound+ return nil, err}entry = &filer.Entry{