Skip to content

Commit

Permalink
improve topic writer logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Feb 3, 2025
1 parent a6d5183 commit 1895e46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Added reason of internal topic writer reconnect to logs
* "No endpoints" is retriable error now

## v3.99.3
* Fixed potential infinity loop for local dc detection (CWE-835)
Expand Down
3 changes: 2 additions & 1 deletion internal/balancer/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"google.golang.org/grpc"

"github.com/ydb-platform/ydb-go-sdk/v3/config"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/backoff"
balancerConfig "github.com/ydb-platform/ydb-go-sdk/v3/internal/balancer/config"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/conn"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/credentials"
Expand All @@ -28,7 +29,7 @@ import (
)

var (
ErrNoEndpoints = xerrors.Wrap(fmt.Errorf("no endpoints"))
ErrNoEndpoints = xerrors.Wrap(xerrors.Retryable(fmt.Errorf("no endpoints"), xerrors.WithBackoff(backoff.TypeSlow)))
errBalancerClosed = xerrors.Wrap(fmt.Errorf("internal ydb sdk balancer closed"))
)

Expand Down

0 comments on commit 1895e46

Please sign in to comment.