From 126efe7934b1d7fe94dffbcad32346001417913a Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Wed, 8 May 2024 10:55:45 -0400 Subject: [PATCH 1/2] CBG-3914 change timeout to wait for authentication failure gocb.Cluster.WaitForReady will perform the authentication handshake. If this goes slowly for some reason, it will return a timeout error instead of a gocb.ErrAuthenticationFailure --- base/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/collection.go b/base/collection.go index 62bd22bbe4..639d27038c 100644 --- a/base/collection.go +++ b/base/collection.go @@ -72,7 +72,7 @@ func GetGoCBv2Bucket(ctx context.Context, spec BucketSpec) (*GocbV2Bucket, error return nil, err } - err = cluster.WaitUntilReady(time.Second*5, &gocb.WaitUntilReadyOptions{ + err = cluster.WaitUntilReady(time.Second*15, &gocb.WaitUntilReadyOptions{ DesiredState: gocb.ClusterStateOnline, ServiceTypes: []gocb.ServiceType{gocb.ServiceTypeManagement}, RetryStrategy: &goCBv2FailFastRetryStrategy{}, From bce064476a00196d741b0b9bf1037e377e92da85 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Thu, 9 May 2024 08:38:36 -0400 Subject: [PATCH 2/2] Increase timeout to 30s --- base/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/collection.go b/base/collection.go index 639d27038c..c76da4827a 100644 --- a/base/collection.go +++ b/base/collection.go @@ -72,7 +72,7 @@ func GetGoCBv2Bucket(ctx context.Context, spec BucketSpec) (*GocbV2Bucket, error return nil, err } - err = cluster.WaitUntilReady(time.Second*15, &gocb.WaitUntilReadyOptions{ + err = cluster.WaitUntilReady(time.Second*30, &gocb.WaitUntilReadyOptions{ DesiredState: gocb.ClusterStateOnline, ServiceTypes: []gocb.ServiceType{gocb.ServiceTypeManagement}, RetryStrategy: &goCBv2FailFastRetryStrategy{},