Retry with backoff when requests are continously failing.
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
- 35/100
Hướng nghiên cứu
Start by locating the FitBit connector's REST request and retry path. Review how failed requests and 401 responses are handled, then define completion around bounded exponential backoff with jitter, a failure threshold, and recovery once the service responds normally.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It is possible that the REST requests are continously failing for certain amount of time due to external causes. (such as server not reachable ).
In this case, the FitBit connector continuously retries until the request is successful. This produces large amount of logs and temporary overload.
To prevent this, we can implement the approach recommended by @blootsvoets
- Build in an exponential backoff algorithm ( if the service is properly misbehaving).
Each failed request that is not 401, assume that the server is misbehaving, then set a timeout. On each subsequent error, the timeout is doubled, plus some random number of milliseconds, up to a maximum and until the service is working as intended again. - To avoid a single connection error to cause the whole connector service to stall, we could set a threshold for number of requests that have failed until we think the server is disconnected.
- Ngôn ngữ chính
- Java
- Star
- 5
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không 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 RADAR-base/RADAR-REST-Connector
-
Don't install kafka-connect-rest-source as a separate Connect pluginCó thể làm lại được @this-Aditya đã nhận 37 ngày trước và không có pull request nào đang mở. Đang mởbug
RADAR-base/RADAR-REST-Connector#212 · 1 người được giao ·
-
Integrate Huawei Cloud REST APIĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
-
Incorrect reponse of Fitfit Intraday Heart Rate API endpointCó thể làm lại được @pvannierop đã nhận 203 ngày trước và không có pull request nào đang mở. Đang mở
RADAR-base/RADAR-REST-Connector#193 · 1 reaction · 1 người được giao ·
-
Support releasing a `.zip` with all the dependencies includedCó thể làm lại được @this-Aditya đã nhận 48 ngày trước và không có pull request nào đang mở. Đang mở
RADAR-base/RADAR-REST-Connector#190 · 1 bình luận · 1 người được giao ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Tất cả issue của RADAR-base/RADAR-REST-Connector
Issue tương tự
-
Độ 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
-
bug new windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS podspec depends on `React-Codegen`, which resolves to an unrelated pod on CocoaPods trunkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
GantMan/jail-monkey#380 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
objectionary/jucs#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
objectionary/lints#1559 ·
Maintainer thường phản hồi trong vòng 2 ngày