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

Fix: release sessions without transaction id. #68

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

MBogda
Copy link

@MBogda MBogda commented Dec 16, 2024

In case of an error in Connection.begin() we have a tx_context object with acquired session, but with empty tx_context.tx_id. Because of the lack of tx_context.tx_id we don't release session back, and so the Session Pool counts spoiled sessions as still acquired.

@MBogda MBogda force-pushed the fix-stuck-sessions branch from 6e8fa94 to c5ba55a Compare December 16, 2024 17:32
@vgvoleg vgvoleg merged commit 40821e3 into ydb-platform:table_service Dec 17, 2024
5 checks passed
@MBogda MBogda deleted the fix-stuck-sessions branch December 17, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants