Closed Nyoroon closed 2 months ago
I added tests for retry status of BAD_SESSION https://github.com/ydb-platform/ydb-go-sdk/commit/e409e01a17b78336d5977b2684fd62271ceff147 Tests do not confirm the behavior on v3.62.0 and on master branches Please check - maybe you wrap a source error inside lambda such as
err := db.Table().Do(ctx, func(ctx, s) error {
err := s.Execute(ctx, ...)
if err != nil {
return myError{orig: err}
}
return nil
})
?
I added tests for retry status of BAD_SESSION e409e01 Tests do not confirm the behavior on v3.62.0 and on master branches Please check - maybe you wrap a source error inside lambda such as
err := db.Table().Do(ctx, func(ctx, s) error { err := s.Execute(ctx, ...) if err != nil { return myError{orig: err} } return nil })
?
Thanks! There was indeed an error in our code.
Bug Report
YDB GO SDK version: v3.62.0
Environment
Current behavior: table.Client.Do fails on BAD_SESSION error
Expected behavior: SDK transparently establish new session and retries query
Steps to reproduce:
Related code:
Other information: Stacktrace: