Releases: ydb-platform/ydb-go-sdk
Releases · ydb-platform/ydb-go-sdk
v3.13.0
- 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 childrenydb.Connection
- Fixed bug with
RoundRobin
andRandomChoice
balancersCreate()
v3.12.1
- 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
fromsync.Mutex
tosync.RWMutex
for exclude deadlocks - Reverted applying empty
discovery
results tocluster
v3.12.0
- Added
balancers.Prefer
andbalancers.PreferWithFallback
constructors
v3.11.13
- Added
trace.Driver.OnRepeaterWakeUp
event - Refactored package
repeater
v3.11.12
- 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
- Reverted usage of
math/rand
(insteadcrypto/rand
)
v3.11.10
- Imported tool gtrace to
./cmd/gtrace
- Changed minimal version of go from 1.13 to 1.14
v3.11.9
- Fixed composing of service traces
- Fixed end-call of
trace.Driver.OnConnStateChange
v3.11.8
- Added
trace.EndpointInfo.LastUpdated()
timestamp - Refactored
endpoint.Endpoint
(split to structendopint
and interfaceEndpoint
) - 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
fromconn.Pool
onconn.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
andproxyConnection.NewStream
- Refactored
internal/cluster.Cluster
(add option for notify about external lock, lock cluster for update cluster endpoints) - Reverted
grpc.ClientConnInterface
API toydb.Connection
- Replaced in
table/types/compare_test.go
checking error by error message to checking witherrors.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
withnet.Conn
proxy object - Fixed closing proxy clients
- Added
ydb.Connection.With(opts ...ydb.CustomOption)
for taking proxyydb.Connection
with some redefined options - Added
ydb.MetaRequestType
andydb.MetaTraceID
aliases to internalmeta
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 defineOperationParams
) - Removed defining operation params over context
- Removed
config.RequestTimeout
andconfig.StreamTimeout
(each grpc-call must manage context instead defineconfig.RequestTimeout
orconfig.StreamTimeout
) - Added internal
OperationTimeout
andOperationCancelAfter
to each client (ratelimiter, coordination, table, scheme, scripting, discovery) config.OperationTimeout
andOperationCancelAfter
config params defined from root config
v3.10.0
- 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 totrace.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 (addedretry.WithID
,retry.WithTrace
andretry.WithIdempotent
opt-in args, required paramisIdempotentOperation
removed) - Refactored package
internal/repeater