-
Notifications
You must be signed in to change notification settings - Fork 119
Add support for request and response compression #765
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
Open
Chaho12
wants to merge
2
commits into
trinodb:main
Choose a base branch
from
Chaho12:feature/jyoo/enable-compression
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d4338a5 to
8e3975d
Compare
ebyhr
reviewed
Sep 16, 2025
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
8e3975d to
3a7f15f
Compare
ebyhr
reviewed
Sep 16, 2025
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyRequestHandler.java
Show resolved
Hide resolved
3a7f15f to
15c12e9
Compare
ebyhr
reviewed
Sep 17, 2025
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java
Outdated
Show resolved
Hide resolved
15c12e9 to
fb2dc46
Compare
ebyhr
reviewed
Sep 18, 2025
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java
Outdated
Show resolved
Hide resolved
gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java
Outdated
Show resolved
Hide resolved
fb2dc46 to
0f0a82d
Compare
|
Looks like Airlift disabled Jetty's |
3 tasks
0f0a82d to
96d2ab9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Accept-Encodingis removed when making POST request so response does not include compression.Since client(trino-gateway) requests without It compression, trino server would return without compression (Content-Encoding).
It may depend on result, but when it seems compression is done about 51%(722->351), so approx 51% of network/memory could be saved.
Additional context and related issues
local test
before (add request/response header logging from main branch)
after
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required, with the following suggested text:
* Fix some things.