-
Notifications
You must be signed in to change notification settings - Fork 734
YQ-3013: add retry for CURLE_GOT_NOTHING for FQ #3565
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
Conversation
|
⚪
|
|
⚪
|
| std::unordered_set<CURLcode> ExtendedRetriedCodes; | ||
| }; | ||
|
|
||
| IHTTPGateway::TRetryPolicy::TPtr GetHTTPDefaultRetryPolicy(THttpRetryPolicyOptions&& options); |
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.
смысла в && не вижу. давай передадим по const&
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.
Мы там меняем options.MaxTime, так что const не вариант (можно вытащить в локальные переменные, тогда станет уместным move(options) в лямбду, и снова const не подходит). Просто &, если это не output параметр — странно. Остаются && и передача по значению. Мне не принципиально, но вряд ли кому-то нужно копировать этот аргумент, так что &&
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.
а ты не меняй аргумент. семантика функции не предполагает этого
ydb/library/yql/providers/common/http_gateway/yql_http_default_retry_policy.h
Outdated
Show resolved
Hide resolved
ydb/library/yql/providers/common/http_gateway/yql_http_default_retry_policy.cpp
Outdated
Show resolved
Hide resolved
|
⚪ |
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
|
⚪
|
Changelog entry
...
Changelog category
Additional information
...