-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Enable HTTP/2 for internal communication by default #23857
Conversation
0bc3f9d
to
be4d7c8
Compare
This was used in a single place so it's better to inline it
As it's decoupled from the processing logic so this could race. When timeout is applied on the future, there is a single place that defines a state of the processing.
be4d7c8
to
dded9b6
Compare
core/trino-main/src/main/java/io/trino/server/EofWriterInterceptor.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/server/InternalCommunicationConfig.java
Show resolved
Hide resolved
@@ -93,8 +85,6 @@ public Response toResponse(Throwable throwable) | |||
.build(); | |||
case WebApplicationException webApplicationException -> webApplicationException.getResponse(); | |||
default -> { | |||
log.warn(throwable, "Request failed for %s", request.getRequestURI()); |
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.
"Request could be already recycled"
Is that really valid? Was the log message not useful?
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.
Yes. The ThrowableMapper can be called when the response write has failed - in this case, mapping of the exception to the response doesn't make sense at all as you won't be able to write it anyway
- Improve error handling - Tune internal HTTP2 settings
It's not available in the JDBC test scope
Request could be already recycled
dded9b6
to
e832e9f
Compare
Supersedes #22461 |
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 - but I want some other people to take a look too.
@electrum, @Praveen2112, @hashhar, @findepi
9d7f941
to
2c174ce
Compare
f0b58fa
to
e832e9f
Compare
Description
Additional context and related issues
Related to #22271 and #21793
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: