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
wdclient/exclusive_locks: replace println with glog in ExclusiveLocker (#8723)
Anton8e7b15a99529
diff --git a/weed/wdclient/exclusive_locks/exclusive_locker.go b/weed/wdclient/exclusive_locks/exclusive_locker.goindex 175718cd25..e61774ae83 100644--- a/weed/wdclient/exclusive_locks/exclusive_locker.go+++ b/weed/wdclient/exclusive_locks/exclusive_locker.go@@ -70,7 +70,7 @@ func (l *ExclusiveLocker) RequestLock(clientName string) {}return err}); err != nil {- println("lock:", err.Error())+ glog.V(2).Infof("Failed to acquire lock %s: %v", l.lockName, err)time.Sleep(InitLockInterval)} else {break@@ -79,6 +79,7 @@ func (l *ExclusiveLocker) RequestLock(clientName string) {l.isLocked.Store(true)l.clientName = clientName+ glog.V(1).Infof("Acquired lock %s", l.lockName)// Each lock has and only has one goroutineif l.renewGoroutineRunning.CompareAndSwap(false, true) {@@ -100,11 +101,11 @@ func (l *ExclusiveLocker) RequestLock(clientName string) {if err == nil {atomic.StoreInt64(&l.token, resp.Token)atomic.StoreInt64(&l.lockTsNs, resp.LockTsNs)- // println("ts", l.lockTsNs, "token", l.token)+ glog.V(2).Infof("Renewed lock %s: ts %d token %d", l.lockName, l.lockTsNs, l.token)}return err}); err != nil {- glog.Errorf("failed to renew lock: %v", err)+ glog.Warningf("Failed to renew lock %s: %v", l.lockName, err)l.isLocked.Store(false)return} else {