-
Notifications
You must be signed in to change notification settings - Fork 2k
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
HTTP API calls hang with 'Accept-Encoding: zstd' #17408
Conversation
Signed-off-by: Andriy Redko <drreta@gmail.com>
❌ Gradle check result for 021c389: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
❌ Gradle check result for 021c389: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17408 +/- ##
============================================
+ Coverage 72.41% 72.48% +0.07%
- Complexity 65667 65672 +5
============================================
Files 5303 5303
Lines 304781 304793 +12
Branches 44201 44202 +1
============================================
+ Hits 220709 220932 +223
+ Misses 65959 65770 -189
+ Partials 18113 18091 -22 ☔ View full report in Codecov by Sentry. |
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.
I agree this is the right fix, but should we create an issue to add direct buffer support to NettyAllocator and add an option to use zstd compression here?
Thanks @andrross , I will open up an issue to research why Netty transport uses NoDirectBuffers allocator - it was certainly the deliberate decision. Thank you. UPD: #17413 |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-17408-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 ca8e4f871a1cfec70985aa6acea33f0c36484be5
# Push it to GitHub
git push --set-upstream origin backport/backport-17408-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
Description
Excluding
zstd
from the list of default supported compressors: althoughzstd-jni
is on the classpath,ZstdEncoder
requires direct buffers supports and which by defaultNettyAllocator
does not provide.Related Issues
Closes #17339
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.