Skip to content

SESSION_BUSY error during sync calls #116

Open
@makhalin

Description

@makhalin

Sometimes we get this error message:

status: SESSION_BUSY
issues {
  message: "Pending previous query completion"
  severity: 1
}

We don't use async calls. We just use the context manager `session.checkout', get the response and exit the manager.

It may be necessary to reset the session due to some errors (e.g., issues.Timeout).

ydb-python-sdk/ydb/table.py

Lines 2600 to 2602 in f4fc8eb

def __exit__(self, exc_type, exc_val, exc_tb):
if self._acquired is not None:
self._pool.release(self._acquired)

Metadata

Metadata

Assignees

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