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
% 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 0.0.0.0:9200...
* Connected to 0.0.0.0 (127.0.0.1) port 9200 (#0)
> GET / HTTP/1.1
> Host: 0.0.0.0:9200
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 568
<
{ [568 bytes data]
100 568 100 568 0 0 50818 0 --:--:-- --:--:-- --:--:-- 51636
* Connection #0 to host 0.0.0.0 left intact
{
"name" : "bd49f6011512",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "dBYK3GZERkeEqDPB51Pghg",
"version" : {
"distribution" : "opensearch",
"number" : "2.19.0",
"build_type" : "tar",
"build_hash" : "fd9a9d90df25bea1af2c6a85039692e815b894f5",
"build_date" : "2025-02-05T16:13:57.130576800Z",
"build_snapshot" : false,
"lucene_version" : "9.12.1",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
Highlighted part of response
< content-type: application/json; charset=UTF-8
output of curl --verbose http://0.0.0.0:9411/health:
% 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 0.0.0.0:9411...
* Connected to 0.0.0.0 (127.0.0.1) port 9411 (#0)
> GET /health HTTP/1.1
> Host: 0.0.0.0:9411
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 503 Service Unavailable
< content-type: application/json; charset=utf-8
< content-length: 1055
< server: Armeria/1.31.3
< date: Mon, 17 Feb 2025 20:08:03 GMT
<
{ [1055 bytes data]
100 1055 100 1055 0 0 104k 0 --:--:-- --:--:-- --:--:-- 114k
* Connection #0 to host 0.0.0.0 left intact
{
"status" : "DOWN",
"zipkin" : {
"status" : "DOWN",
"details" : {
"ElasticsearchStorage{initialEndpoints=http://opensearch:9200, index=zipkin}" : {
"status" : "DOWN",
"details" : {
"error" : "IllegalArgumentException: .version.number not found in response: �\u0006\u0000\u0000sNaPpY\u0000�\u0001\u0000�爞�\u0004l{\n \"name\" : \"bd49f6011512\",\u0001\u001B\u001Ccluster_\u0015#\u0018docker-\r\u00186%\u0000\fuuid\u0005HTdBYK3GZERkeEqDPB51Pghg\t-\u0018version\u0001(<{\n \"distribut\r\u0017(\"opensearch\u00053\u0001�\u0010umber\u00014\u0018\"2.19.0\u0011\u0019 build_typ\t�\btar6\u001A\u0000\fhash\u00057�fd9a9d90df25bea1af2c6a85039692e815b894f5\"\u0001�\u0004 \rY\fdate\u0005?t2025-02-05T16:13:57.130576800Z6t\u0000\u001Csnapshot\u00019\u0010false\rS\u0018lucene_=\u0001\u0018\"9.12.1\u0011?dminimum_wire_compatibility25\u0000\f7.109\u0002\u00115\u0010indexr6\u0000\u00015\f\n }\u0001�\u0018\"taglin\t� The OpenS%tH Project: https://o5� .org/\"\n}\n"
}
}
}
}
}
Expected Behaviour
Zipkin should work with Opensearch the way it does with Elasticsearch
Notes
Since Elasticsearch is returning a response with
< content-type: application/json
and Opensearch is returning a response with
< content-type: application/json; charset=UTF-8
I wonder if the root cause might be that the Opensearch response is being "double encoded" as UTF-8 since I see this logic here that appears to be common to both Elasticsearch and Opensearch:
Describe the Bug
Zipkin fails to start when using Opensearch (but succeeds when using Elasticsearch)
Steps to Reproduce
docker compose up
and wait for containerscurl --verbose http://0.0.0.0:9200
to see Elasticsearch / Opensearch informationcurl --verbose http://0.0.0.0:9411/health
to see Zipkin healthElasticsearch (working)
docker-compose.yml
:output of
curl --verbose http://0.0.0.0:9200
:Highlighted part of response
output of
curl --verbose http://0.0.0.0:9411/health
:Opensearch (not working)
docker-compose.yml
:output of
curl --verbose http://0.0.0.0:9200
:Highlighted part of response
output of
curl --verbose http://0.0.0.0:9411/health
:Expected Behaviour
Zipkin should work with Opensearch the way it does with Elasticsearch
Notes
Since Elasticsearch is returning a response with
and Opensearch is returning a response with
I wonder if the root cause might be that the Opensearch response is being "double encoded" as UTF-8 since I see this logic here that appears to be common to both Elasticsearch and Opensearch:
zipkin/zipkin-storage/elasticsearch/src/main/java/zipkin2/elasticsearch/internal/client/HttpCall.java
Line 245 in 0f8fc88
The text was updated successfully, but these errors were encountered: