Skip to content

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.

gRpc connection error on filer when no volume left #2243

Chris Lu4909bd968405
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.go
index 15dc917e94..53935858ef 100644
--- a/weed/pb/grpc_client_server.go
+++ b/weed/pb/grpc_client_server.go
@@ -119,9 +119,7 @@ func WithCachedGrpcClient(fn func(*grpc.ClientConn) error, address string, opts
}
executionErr := fn(vgc.ClientConn)
if executionErr != nil {
- vgc.errCount++
- if vgc.errCount > 3 ||
- strings.Contains(executionErr.Error(), "transport") ||
+ if strings.Contains(executionErr.Error(), grpc.ErrServerStopped) ||
strings.Contains(executionErr.Error(), "connection closed") {
grpcClientsLock.Lock()
if t, ok := grpcClients[address]; ok {