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

User code GRPC context cancellation propagates to driver level #100

Open
zdazzy opened this issue Feb 13, 2025 · 0 comments
Open

User code GRPC context cancellation propagates to driver level #100

zdazzy opened this issue Feb 13, 2025 · 0 comments

Comments

@zdazzy
Copy link

zdazzy commented Feb 13, 2025

The driver uses connection pooling by default. Each connection is a long-living bidirectional GRPC stream. When a user GRPC request completes it cancels its context at the end, which in turn causes the underlying session to be cancelled as well. This in turn causes the subsequent DB request to fail with BAD_SESSION code.

Using an abstraction layer in a form of JDBC (not to mention other layers like spring-data-jdbc) makes it impossible to mitigate this behavior without resorting to some nasty crutch code.

Some form of control over this would be appreciated. Maybe in a form of a JDBC property for the driver.

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

No branches or pull requests

1 participant