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 crash in arangodb filer when attempting to access a deleted bucket (#3587)
gfxbf844d8e4623
diff --git a/weed/filer/arangodb/arangodb_store_bucket.go b/weed/filer/arangodb/arangodb_store_bucket.goindex b35a5c9b37..44aeeadeaf 100644--- a/weed/filer/arangodb/arangodb_store_bucket.go+++ b/weed/filer/arangodb/arangodb_store_bucket.go@@ -34,6 +34,9 @@ func (store *ArangodbStore) OnBucketDeletion(bucket string) {glog.Errorf("bucket delete %s: %v", bucket, err)return}+ store.mu.Lock()+ delete(store.buckets, bucket)+ store.mu.Unlock()}func (store *ArangodbStore) CanDropWholeBucket() bool {return truediff --git a/weed/filer/arangodb/helpers.go b/weed/filer/arangodb/helpers.goindex 35796a8f85..3f36acb0a0 100644--- a/weed/filer/arangodb/helpers.go+++ b/weed/filer/arangodb/helpers.go@@ -86,7 +86,7 @@ func (store *ArangodbStore) ensureBucket(ctx context.Context, bucket string) (bcstore.mu.RLock()bc, ok = store.buckets[bucket]store.mu.RUnlock()- if ok {+ if ok && bc != nil {return bc, nil}store.mu.Lock()