Skip to content

bug: Unexpected grpc exception when iterating over result sets in YDB Python SDK #669

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

Open
krasnovdm opened this issue May 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@krasnovdm
Copy link

krasnovdm commented May 21, 2025

Unexpected grpc exception when iterating over result sets in YDB Python SDK

YDB Python SDK version:

ydb 3.21.2

Current behavior:

When attempting to iterate over result sets in the YDB Python SDK, a grpc._channel._MultiThreadedRendezvous exception is raised instead of the expected ydb.issues exception. This occurs due to temporary connection issues to the server, network overload, or other transient errors.

Expected behavior:

It is expected that the SDK would handle temporary errors and provide a higher-level exception ydb.issues to simplify error handling on the application side.

Steps to reproduce:

  • Execute a query to YDB using the Python SDK.
  • Attempt to iterate over the result sets.
  • Drop connection
  • Observe the occurrence of the grpc._channel._MultiThreadedRendezvous exception.

Related code:

Exception raised from

res = self.wrapper(next(self.it))

@krasnovdm krasnovdm added the bug Something isn't working label May 21, 2025
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