Points and query calls that hit the client timeout are sent a second time
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Start by reading ChannelPool::with_channel and its retry conditions, then trace how tonic exposes TimeoutExpired through the status source chain. Reproduce the timeout with the supplied listener setup and inspect the retry tests; the issue says a small PR with a test is ready, so check that work before starting. Done means the timed-out request is sent once, the channel is dropped, and a later call reconnects.
索引モデルが issue の本文から書いたものです。
説明
ChannelPool::with_channel retries a failed call once, on a new channel, when the status code is Internal, Unavailable, Cancelled or Unknown and the caller allows retries. All points calls (with_points_client), the root client and the serverless collections client allow retries.
tonic reports an expired client-side timeout (QdrantConfig::timeout) as Code::Cancelled with the message "Timeout expired", and keeps tonic::TimeoutExpired in the status source chain. So a request that already used its whole timeout is sent again with a fresh timeout:
- the call returns after about 2x
timeout, plus the reconnect time (up toconnect_timeout); - the server gets the same request twice, at a moment when it is already too slow to answer once.
Reproduction: a local TCP listener that accepts connections and never answers, and a client built with .timeout(Duration::from_secs(1)), sending client.query(QueryPointsBuilder::new("c").query(vec![0.5_f32; 16384])) on current dev (48f9098):
query with timeout(1s): failed after 2.11s, bytes received per connection: [65763, 65746], err: Error in the response: The operation was cancelled Timeout expired
About 64 KiB of the request arrived on each of the two connections. If the retry is skipped for TimeoutExpired, the same call fails after 1.11s with one connection ([65763]).
The retry was added to recover from broken channels ("retry api call if channel is broken", and the "domain name change" comment in with_channel). A request that ran into its own timeout is not necessarily a broken channel. I'd suggest not retrying in that case, while still dropping the channel so the next call reconnects. The tradeoff: if the connection died silently, the first call fails with the timeout instead of being retried, and the next call reconnects. I have a small PR with a test ready.
AI-assisted.
- 主要言語
- Rust
- スター
- 425
- フォーク
- 89
- 平均マージ
- 2時間 48分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
qdrant/rust-client のほかの issue
-
upsert_points deep-clones the whole request on every call, not only on retry再び着手できるかも @NullSense が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
qdrant/rust-client#316 · コメント 3 件 ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)再び着手できるかも @inamdarmihir が 36 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
qdrant/rust-client#306 · コメント 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
qdrant/rust-client#289 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
qdrant/rust-client#272 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
qdrant/rust-client#267 · コメント 1 件 · リアクション 2 件 ·
qdrant/rust-client の issue をすべて見る
似ている issue
-
app bug session
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
macOS autosubmit enable passes unsupported --wait to launchctl bootout対応中かも @iqdoctor が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
junhoyeo/tokscale#1713 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信