Skip to content

Releases: ydb-platform/ydb-go-sdk

v3.13.0

12 Mar 20:53
Compare
Choose a tag to compare
  • Refactored Connection interface
  • Removed CustomOption and taking client with custom options
  • Removed proxy package
  • Improved db.With() helper for child connections creation
  • Set shared conn.Pool for all children ydb.Connection
  • Fixed bug with RoundRobin and RandomChoice balancers Create()

v3.12.1

12 Mar 20:53
d2a873e
Compare
Choose a tag to compare
  • Added trace.Driver.OnConnPark event
  • Added trace.Driver.OnConnClose event
  • Fixed bug with closing nil session in table retryer
  • Restored repeater Force call on pessimize event
  • Changed mutex type in conn.Conn from sync.Mutex to sync.RWMutex for exclude deadlocks
  • Reverted applying empty discovery results to cluster

v3.12.0

12 Mar 20:52
4fd50ff
Compare
Choose a tag to compare
  • Added balancers.Prefer and balancers.PreferWithFallback constructors

v3.11.13

12 Mar 20:51
0a58572
Compare
Choose a tag to compare
  • Added trace.Driver.OnRepeaterWakeUp event
  • Refactored package repeater

v3.11.12

12 Mar 20:50
a1b9255
Compare
Choose a tag to compare
  • Added trace.ClusterInsertDoneInfo.Inserted boolean flag for notify about success of insert endpoint into balancer
  • Added trace.ClusterRemoveDoneInfo.Removed boolean flag for notify about success of remove endpoint from balancer

v3.11.11

12 Mar 20:49
955b4e9
Compare
Choose a tag to compare
  • Reverted usage of math/rand (instead crypto/rand)

v3.11.10

12 Mar 20:49
13752be
Compare
Choose a tag to compare
  • Imported tool gtrace to ./cmd/gtrace
  • Changed minimal version of go from 1.13 to 1.14

v3.11.9

12 Mar 20:48
5ab005b
Compare
Choose a tag to compare
  • Fixed composing of service traces
  • Fixed end-call of trace.Driver.OnConnStateChange

v3.11.8

27 Feb 05:58
95d08c8
Compare
Choose a tag to compare
  • Added trace.EndpointInfo.LastUpdated() timestamp
  • Refactored endpoint.Endpoint (split to struct endopint and interface Endpoint)
  • Returned safe-thread copy of endpoint.Endpoint to trace callbacks
  • Added endpoint.Endpoint.Touch() func for refresh endpoint info
  • Added conn.conn.onClose slice for call optional funcs on close step
  • Added removing conn.Conn from conn.Pool on conn.Conn.Close() call
  • Checked cluster close/empty on keeper goroutine
  • Fixed internal.errors.New wrapping depth
  • Added context flag for no wrapping operation results as error
  • Refactored trace.Driver conn events
  • Removed internal alias-type errors.IssuesIterator
  • Changed trace.GetCredentialsDoneInfo token representation from bool to string
  • Added log.Secret helper for mask token
  • Replaced meta in proxyConnection.Invoke and proxyConnection.NewStream
  • Refactored internal/cluster.Cluster (add option for notify about external lock, lock cluster for update cluster endpoints)
  • Reverted grpc.ClientConnInterface API to ydb.Connection
  • Replaced in table/types/compare_test.go checking error by error message to checking with errors.Is()
  • Added ydb.WithTLSSInsecureSkipVerify() option
  • Added trace.Table.OnPoolStateChange event
  • Wrapped internal errors with print <func, file, line>
  • Removed trace.Table.OnPoolTake event (unused)
  • Refactored trace.Details matching by string pattern
  • Added resolver trace callback
  • Refactored initialization step of grpc dial options
  • Added internal package net with net.Conn proxy object
  • Fixed closing proxy clients
  • Added ydb.Connection.With(opts ...ydb.CustomOption) for taking proxy ydb.Connection with some redefined options
  • Added ydb.MetaRequestType and ydb.MetaTraceID aliases to internal meta package constants
  • Added ydb.WithCustomCredentials() option
  • Refactored ydb.Ratelimiter().AcquireResource() method (added options for defining type of acquire request)
  • Removed single point to define operation mode params (each grpc-call with OperationParams must explicit define OperationParams)
  • Removed defining operation params over context
  • Removed config.RequestTimeout and config.StreamTimeout (each grpc-call must manage context instead define config.RequestTimeout or config.StreamTimeout)
  • Added internal OperationTimeout and OperationCancelAfter to each client (ratelimiter, coordination, table, scheme, scripting, discovery) config. OperationTimeout and OperationCancelAfter config params defined from root config

v3.10.0

19 Feb 21:39
654ff6e
Compare
Choose a tag to compare
  • Extended trace.Details constants for support per-service events
  • Added trace.Discovery struct for traces discovery events
  • Added trace.Ratelimiter, trace.Coordination, trace.Scripting, trace.Scheme stubs (will be implements in the future)
  • Added ratelimiter/config, coordination/config, scripting/config, scheme/config, discovery/config packages for specify per-service configs
  • Removed trace.Driver.OnDiscovery callback (moved to trace.Discovery)
  • Refactored initialization step (firstly makes discovery client)
  • Removed internal/lazy.Discovery (discovery client always initialized)
  • Fixed trace.Table event structs
  • Refactored grpc options for define dns-balancing configuration
  • Refactored retry.Retry signature (added retry.WithID, retry.WithTrace and retry.WithIdempotent opt-in args, required param isIdempotentOperation removed)
  • Refactored package internal/repeater