Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: table session pool gives up too fast on obtaining new session #1566

Open
zveznicht opened this issue Nov 20, 2024 · 0 comments
Open

bug: table session pool gives up too fast on obtaining new session #1566

zveznicht opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zveznicht
Copy link

Bug Report

YDB GO SDK version:

3.86.1

Issue:

On environments with small requests rate we occasionally get this error when running queries (table service):

failed to get item from pool after 100 attempts and 1.922558ms, pool has 1 items (0 busy, 1 idle, 0 create_in_progress): %!w(<nil>) at `github.com/ydb-platform/ydb-go-sdk/v3/internal/pool.(*Pool).getItem(pool.go:654)`

It seems it happens after 20-30 minutes without any request, which is larger than default session idle timeout. Judging by ydb sdk metrics it removes (almost?) all sessions from the pool (because they are all too old?), which is fine. What is not fine is that it doesn't seem to to try to create new session, certainty not 100 times or it doesn't wait for it to become available.

@zveznicht zveznicht added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant