-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support retry on http status code #1817
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1817 +/- ##
==========================================
+ Coverage 35.91% 43.39% +7.48%
==========================================
Files 69 76 +7
Lines 11576 12301 +725
==========================================
+ Hits 4157 5338 +1181
+ Misses 7104 6629 -475
- Partials 315 334 +19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@cr7258 Please resolve the conflicts |
260fdf2
to
d725f24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
新增
retryOnStatus []string
参数支持基于请求的 http 状态码来配置是否需要重试,支持通过正则表达式的方式匹配 http 状态吗。Ⅱ. Does this pull request fix one issue?
fixes #1808
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews