Points and query calls that hit the client timeout are sent a second time
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 425
- Fork
- 89
- Merge trung bình
- 2 giờ 48 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của qdrant/rust-client
-
upsert_points deep-clones the whole request on every call, not only on retryCó thể làm lại được @NullSense đã nhận 7 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
qdrant/rust-client#316 · 3 bình luận ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)Có thể làm lại được @inamdarmihir đã nhận 36 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
qdrant/rust-client#306 · 1 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
qdrant/rust-client#289 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
qdrant/rust-client#272 · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
qdrant/rust-client#267 · 1 bình luận · 2 reaction ·
Tất cả issue của qdrant/rust-client
Issue tương tự
-
app bug session
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS autosubmit enable passes unsupported --wait to launchctl bootoutCó thể đã có người làm @iqdoctor đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
junhoyeo/tokscale#1713 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày