ydb-platform / ydb-platform/ydb-python-sdk

bug: Timeout waiting for init response

Open
#766 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
102
Forks
75
Avg merge
1d 23h
Merged PRs (30d)
13

Description

Bug Report

YDB Python SDK version:

arc

Current behavior:

We are using TopicWriter. Today we've faced issue when we've pushed messages to topic via write method about 10 minutes, then later ydb._topic_writer.topic_writer.TopicWriterError: Timeout waiting for init response exception happened and all queued messages were lost

Expected behavior:

sdk handles reconnection issues itself without loosing data. I know we should use write_with_ack method itself but it could be perf degradation (as comment states)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing TopicWriter.write and the handling of the “Timeout waiting for init response” exception, then compare its behavior with write_with_ack. Determine the intended reconnection and queued-message guarantees; done means transient connection failures do not lose queued messages while using the regular write path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.