Skip to content

Releases: ydb-platform/ydb-go-sdk

v3.18.4

07 Apr 15:48

Choose a tag to compare

  • Renamed internal packages errors, net and resolver to xerrors, xnet and xresolver for excluding ambiguous interpretation
  • Renamed internal error wrapper xerrors.New to xerrors.Wrap

Full Changelog: v3.18.3...v3.18.4

v3.18.3

07 Apr 12:42

Choose a tag to compare

  • Added WithPanicCallback option to all service configs (discovery, coordination, ratelimiter, scheme, scripting, table) and auto-applying from ydb.WithPanicCallback
  • Added panic recovering (if defined ydb.WithPanicCallback option) which thrown from retry operation

Full Changelog: v3.18.2...v3.18.3

v3.18.2

07 Apr 09:46

Choose a tag to compare

  • Refactored balancers (makes concurrent-safe)
  • Excluded separate balancers lock from cluster
  • Refactored cluster.Cluster interface (Insert and Remove returning nothing now)
  • Replaced unsafe cluster.close boolean flag to cluster.done chan for listening close event
  • Added internal checker cluster.isClosed() for check cluster state
  • Extracted getting available conn from balancer to internal helper cluster.get (called inside cluster.Get as last effort)
  • Added checking conn.Conn availability with conn.Ping() in prefer nodeID case

Full Changelog: v3.18.1...v3.18.2

v3.18.1

06 Apr 16:01

Choose a tag to compare

  • Added conn.Ping(ctx) method for check availability of conn.Conn
  • Refactored cluster.Cluster.Get(ctx) to return only available connection (instead of returning any connection from balancer)
  • Added address to error description thrown from conn.take()
  • Renamed package internal/db to internal/database to exclude collisions with variable name db

Full Changelog: v3.18.0...v3.18.1

v3.18.0

04 Apr 14:50

Choose a tag to compare

  • Added go1.18 to test matrix
  • Added ydb.WithOperationTimeout and ydb.WithOperationCancelAfter context modifiers

Full Changelog: v3.17.0...v3.18.0

v3.17.0

02 Apr 12:32

Choose a tag to compare

  • Removed redundant trace.With{Table,Driver,Retry} and trace.Context{Table,Driver,Retry} funcs
  • Moved gtrace tool from ./cmt/gtrace to ./internal/cmd/gtrace
  • Refactored gtrace tool for generate Compose options
  • Added panic recover on trace calls in Compose call step
  • Added trace.With{Discovery,Driver,Coordination,Ratelimiter,Table,Scheme,Scripting}PanicCallback options
  • Added ydb.WithPanicCallback option

Full Changelog: v3.16.12...v3.17.0

v3.16.12

31 Mar 05:52

Choose a tag to compare

  • Fixed bug with check acquire error over ydb.IsRatelimiterAcquireError
  • Added full changelog link to github release description

Full Changelog: v3.16.11...v3.16.12

v3.16.11

25 Mar 10:27

Choose a tag to compare

  • Added stacktrace to errors with issues

v3.16.10

24 Mar 21:08

Choose a tag to compare

  • Refactored cluster.Cluster and balancer.Balancer interfaces (removed Update method)
  • Replaced cluster.Update with cluster.Remove and cluster.Insert calls
  • Removed trace.Driver.OnClusterUpdate event
  • Fixed bug with unexpected changing of local datacenter flag in endpoint
  • Refactored errors wrapping (stackedError are not ydb error now, checking errors.IsYdb(err) with errors.As now)
  • Wrapped retry operation errors with errors.WithStackTrace(err)
  • Changed trace.RetryLoopStartInfo.Context type from context.Context to *context.Context

v3.16.9

23 Mar 15:45

Choose a tag to compare

  • Refactored internal operation and transport errors