Skip to content

Commit 3a2e75c

Browse files
committed
GOCBC-1489: Expose ErrCircuitBreakerOpen
Motivation ---------- Currently this error is not exposed by the API, meaning that users cannot take action on it Modification ------------ * Add ErrCircuitBreakerOpen * Update gocbcore version to the one that exposes ErrCircuitBreakerOpen Change-Id: I14ae57efdc5af4ffa28b62af35a969b11ed351d9 Reviewed-on: https://review.couchbase.org/c/gocb/+/199008 Reviewed-by: Charles Dixon <[email protected]> Tested-by: Dimitris Christodoulou <[email protected]>
1 parent f72c06b commit 3a2e75c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

error.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,8 @@ var (
323323

324324
// ErrNoResult occurs when no results are available to a query.
325325
ErrNoResult = errors.New("no result was available")
326+
327+
// ErrCircuitBreakerOpen occurs when the operation was cancelled because the circuit breaker was open
328+
// # UNCOMMITTED: This API may change in the future.
329+
ErrCircuitBreakerOpen = gocbcore.ErrCircuitBreakerOpen
326330
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/couchbase/gocb/v2
22

33
require (
4-
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231012093413-9ad5c92e6b34
4+
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231018085315-a316c90c75d6
55
github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259
66
github.com/google/uuid v1.3.1
77
github.com/stretchr/testify v1.8.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231012093413-9ad5c92e6b34 h1:ZJ90q/lWj3dahr1PzUGxQ2I4xGQlH3h892YPeJmmJRo=
22
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231012093413-9ad5c92e6b34/go.mod h1:lYQIIk+tzoMcwtwU5GzPbDdqEkwkH3isI2rkSpfL0oM=
3+
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231018085315-a316c90c75d6 h1:Lf/WoFAZptQZ8mJYjB3m2gDnvvi3Jo38hQhKyH3mfpw=
4+
github.com/couchbase/gocbcore/v10 v10.2.9-0.20231018085315-a316c90c75d6/go.mod h1:lYQIIk+tzoMcwtwU5GzPbDdqEkwkH3isI2rkSpfL0oM=
35
github.com/couchbaselabs/gocaves/client v0.0.0-20230307083111-cc3960c624b1/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY=
46
github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259 h1:2TXy68EGEzIMHOx9UvczR5ApVecwCfQZ0LjkmwMI6g4=
57
github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY=

0 commit comments

Comments
 (0)