Skip to content

Improve logging in the presence of HTTP GET timeouts#151

Open
christian-rp wants to merge 2 commits into
masterfrom
croman-improve-timeout-logging
Open

Improve logging in the presence of HTTP GET timeouts#151
christian-rp wants to merge 2 commits into
masterfrom
croman-improve-timeout-logging

Conversation

@christian-rp

Copy link
Copy Markdown

No description provided.

@christian-rp christian-rp requested a review from DavidIAm August 4, 2023 18:58
@christian-rp

Copy link
Copy Markdown
Author

Another thing worth noting that the hardcoded 30 second connection/socket timeout used in HttpUtils is being negated by the 10 second Future::get call in ElasticDb/ElasticsearchDb. Why are they different?

} catch (TimeoutException e) {
log.error("timed out waiting {} seconds for GET {} to complete", maxRequestDuration, allRequestUrl);
throw e;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

might be a silly question but what is the relationship between these two classes? could this change be single-sourced by putting the common elements into a reusable method accessible to both classes?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

a very good question, I don't know the answer. At first glance, they do more/less the same thing.

@christian-rp christian-rp changed the base branch from master to release-0.3.x September 25, 2023 18:55
@christian-rp christian-rp changed the base branch from release-0.3.x to master September 25, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants