You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of v2.19.0 on Linux, when using cURL or libcurl against the OpenSearch REST API and zstd is in the Accept-Encoding headers, the response from OpenSearch hangs.
Related component
Other
To Reproduce
Broken:
$ curl 'http://localhost:9200/_cat/health?format=json' --verbose -H "Accept-Encoding: deflate, gzip, br, zstd" -o /dev/null
* Host localhost:9200 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [::1]:9200...
* Connected to localhost (::1) port 9200
> GET /_cat/health?format=json HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/8.5.0
> Accept: */*> Accept-Encoding: deflate, gzip, br, zstd
>< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 300
< content-encoding: zstd
<
The API call never returns, until the client times out or the process is killed.
Expected behavior
Here's what happens if you remove the zstd from the Accept-Encoding header.
$ curl 'http://localhost:9200/_cat/health?format=json' --verbose -H "Accept-Encoding: deflate, gzip, br" -o /dev/null
* Host localhost:9200 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [::1]:9200...
* Connected to localhost (::1) port 9200
> GET /_cat/health?format=json HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/8.5.0
> Accept: */*> Accept-Encoding: deflate, gzip, br
>< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-encoding: gzip
< content-length: 214
<
{ [214 bytes data]
100 214 100 214 0 0 161k 0 --:--:-- --:--:-- --:--:-- 208k
* Connection #0 to host localhost left intact
Also, this is the behavior in v2.18.0, even with the zstd included in Accept-Encoding:
$ curl 'http://localhost:9200/_cat/health?format=json' --verbose -H "Accept-Encoding: deflate, gzip, br, zstd" -o /dev/null
* Host localhost:9200 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [::1]:9200...
* Connected to localhost (::1) port 9200
> GET /_cat/health?format=json HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/8.5.0
> Accept: */*> Accept-Encoding: deflate, gzip, br, zstd
>< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-encoding: gzip
< content-length: 214
<
{ [214 bytes data]
100 214 100 214 0 0 101k 0 --:--:-- --:--:-- --:--:-- 104k
* Connection #0 to host localhost left intact
Note that in v2.18.0 content-encoding: gzip but in v2.19.0 content-encoding: zstd with it hanging.
…tp.compression: false` and things are working correctly, so I'm putting v2.19.0 back in
Revert "Revert "bump opensearch and dashboards to v2.19.0", as it seems to break arkime capture:"
This reverts commit 54472cf.
I seems like OpenSearch never supported ZSTD compression (for HTTP), but 4.1.116 has a bunch of changes that may trigger this behavior (since OpenSearch has zstd-jni on the classpath).
reta
added
v3.0.0
Issues and PRs related to version 3.0.0
v2.19.0
Issues and PRs related to version 2.19.0
v2.19.1
Issues and PRs related to version 2.19.1
and removed
v2.19.0
Issues and PRs related to version 2.19.0
labels
Feb 13, 2025
Describe the bug
As of v2.19.0 on Linux, when using cURL or libcurl against the OpenSearch REST API and
zstd
is in theAccept-Encoding
headers, the response from OpenSearch hangs.Related component
Other
To Reproduce
Broken:
The API call never returns, until the client times out or the process is killed.
Expected behavior
Here's what happens if you remove the
zstd
from theAccept-Encoding
header.Also, this is the behavior in v2.18.0, even with the
zstd
included inAccept-Encoding
:Note that in v2.18.0
content-encoding: gzip
but in v2.19.0content-encoding: zstd
with it hanging.Additional Details
Plugins
Note that I have removed the
opensearch-security
andopensearch-performance-analyzer
but I think that's probably not relevant (?).Host/Environment (please complete the following information):
opensearchproject/opensearch:2.19.0
image)**Workaround
Setting
http.compression
tofalse
causes the problem to go away.The text was updated successfully, but these errors were encountered: