Skip to content

Commit 6bd56e0

Browse files
authored
Merge branch 'master' into driver-value
2 parents f6a25d1 + 81b83d4 commit 6bd56e0

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
* Fixed string representation of `TzTimestamp`, `TzDatetime` and `TzDate` type values
22
* Added `database/sql/driver.Value` as type destination for almost ydb values
33

4+
## v3.92.5
5+
* Avoid retrying requests finished with 'UNAUTHORIZED' errors
6+
47
## v3.92.4
58
* Fixed connections pool leak on closing
69

710
## v3.92.3
811
* Fixed error with incompleted data returen from transaction.ReadQueryResult method
912
* Added option `query/WithResponsePartLimitSizeBytes(...)` for queries with query service
1013

11-
1214
## v3.92.2
1315
* Added `table/options.WithShardNodesInfo()` experimental option to get shard nodeId for describe table call
1416

internal/pool/pool.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"time"
88

99
"github.com/jonboulle/clockwork"
10+
"github.com/ydb-platform/ydb-go-genproto/protos/Ydb"
1011

1112
"github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
1213
"github.com/ydb-platform/ydb-go-sdk/v3/internal/stack"
@@ -339,7 +340,14 @@ func (p *Pool[PT, T]) try(ctx context.Context, f func(ctx context.Context, item
339340
item, err := p.getItem(ctx)
340341
if err != nil {
341342
if xerrors.IsYdb(err) {
342-
return xerrors.WithStackTrace(xerrors.Retryable(err))
343+
switch {
344+
case xerrors.IsOperationError(err, Ydb.StatusIds_UNAUTHORIZED):
345+
// https://github.com/ydb-platform/ydb-go-sdk/issues/1550
346+
// Avoid retrying UNAUTHORIZED errors.
347+
return xerrors.WithStackTrace(xerrors.Unretryable(err))
348+
default:
349+
return xerrors.WithStackTrace(xerrors.Retryable(err))
350+
}
343351
}
344352

345353
return xerrors.WithStackTrace(err)

internal/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package version
33
const (
44
Major = "3"
55
Minor = "92"
6-
Patch = "4"
6+
Patch = "5"
77

88
Package = "ydb-go-sdk"
99
)

0 commit comments

Comments
 (0)