Skip to content

feature: 2DC support in python SDK #702

@eivanov89

Description

@eivanov89

Currently, it doesn't work in case of 2DC: fails to find connection for e.g. table client or new monitoring client:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/eivanov89/repos/ydb-python-sdk/ydb/monitoring.py", line 47, in self_check
    return self._driver(
  File "/home/eivanov89/repos/ydb-python-sdk/ydb/tracing.py", line 70, in wrapper
    return f(self, *args, **kwargs)
  File "/home/eivanov89/repos/ydb-python-sdk/ydb/pool.py", line 459, in __call__
    connection = self._store.get(preferred_endpoint)
  File "/home/eivanov89/repos/ydb-python-sdk/ydb/tracing.py", line 70, in wrapper
    return f(self, *args, **kwargs)
  File "/home/eivanov89/repos/ydb-python-sdk/ydb/pool.py", line 144, in get
    raise issues.ConnectionLost("Couldn't find valid connection")
ydb.issues.ConnectionLost: Couldn't find valid connection

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions