Skip to content
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

Support setting timeout for stream load #1670

Merged
merged 4 commits into from
Aug 20, 2019

Conversation

morningman
Copy link
Contributor

eg: -H "timeout:120"

@@ -238,6 +238,10 @@ Status StreamLoadAction::_on_header(HttpRequest* http_req, StreamLoadContext* ct

TNetworkAddress master_addr = _exec_env->master_info()->network_address;

if (!http_req->header(HTTP_TIMEOUT).empty()) {
ctx->timeout_second = std::stoi(http_req->header(HTTP_TIMEOUT));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will thrown the std::invalid_argument exception which could not be catch in the out side.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a try catch block

@EmmyMiao87
Copy link
Contributor

LGTM

@imay imay merged commit 8e6814c into apache:master Aug 20, 2019
@imay imay mentioned this pull request Sep 26, 2019
SWJTU-ZhangLei added a commit to SWJTU-ZhangLei/incubator-doris that referenced this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants