Pub/Sub c++ client: How to prevent/reduce ack failures on at least once delivery subscription
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp, google-cloud
- Lĩnh vực
- cloud, distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra google/cloud/pubsub/internal/ack_handler_wrapper.cc:29 và cấu hình client trong báo cáo, sau đó tái hiện các lỗi bằng bài kiểm thử tải được mô tả. Theo dõi hành vi acknowledgement và gia hạn deadline liên quan đến các lỗi UNAVAILABLE và việc redelivery. Công việc được xem là hoàn tất khi đã xác định được nguyên nhân của các lỗi ack và redelivery bị trì hoãn, cùng với một cách đã được xác minh để giảm thiểu hoặc ngăn chặn chúng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Client version: v2.39.0
MaxDeadline = seconds(0) (default value)
MaxDeadlineExtension = seconds(180)
MinDeadlineExtension = seconds(60)
MaxOutstandingMessages = 250
MaxConcurrency = 1
Time to time acks are failing. There is no retry for at least once delivery. How to reduce/prevent these failures? It happens 10-20 times a day.
Some of the logged errors [file_name] - [message]
[NTPubSubLogger] /google-cloud-cpp/google/cloud/pubsub/internal/ack_handler_wrapper.cc:29 - error while trying to ack(), status=UNAVAILABLE: recvmsg:Connection reset by peer
[NTPubSubLogger] /google-cloud-cpp/google/cloud/pubsub/internal/ack_handler_wrapper.cc:29 - error while trying to ack(), status=UNAVAILABLE: 502:Bad Gateway
It sounds like network issue but I doubt that. It happens every day 10-20 times. I can reproduce it with a 10 minutes of load tests by consuming/processing 300 messages per second.
Messages are ordered by account id in the system. When this happens the messages are stuck on pub/sub for 10-20 minutes because of unacked message. initial deadline=60 seconds, max deadline = 180 seconds. I observed the cpp client logs in debug mode. There is no ModifyAckDeadlineRequest is being made but still messages redelivered between 10-20 minutes later, in fact they should arrive in a few minutes. (That's another issue and maybe not related to the client.)
- Ngôn ngữ chính
- C++
- Star
- 659
- Fork
- 471
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 100
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 googleapis/google-cloud-cpp
-
cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributesĐang mởapi: storage type: cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
googleapis/google-cloud-cpp#16544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: storage priority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
googleapis/google-cloud-cpp#16529 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type: feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
googleapis/google-cloud-cpp#16193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: storage type: cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
googleapis/google-cloud-cpp#16545 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: storage type: cleanup
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
googleapis/google-cloud-cpp#16404 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của googleapis/google-cloud-cpp
Issue tương tự
-
ai_p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ClickHouse/ClickHouse#125522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] The priority slider's keyboard-hints tooltip shows on the 'Default' label, not the sliderĐang mởagent:WSL bug linux LOW ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Branch-3.3.5a
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
TrinityCore/TrinityCore#32060 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[CMake] Strengthen pkg-config installation tests to detect missing metadata and dependenciesĐang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
open-telemetry/opentelemetry-cpp#4697 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
secondlife/viewer#6432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày