Skip to content

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

Open
@krasnovdm

Description

@krasnovdm

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions