Skip to content

[Bug]: Elasticsearch default compression breaks OpenSearch index creation #7200

@dutchhaag

Description

@dutchhaag

What happened?

Hello,

I am using Jaeger with the OpenSearch storage backend. I am using AWS Opensearch version 2.19.

I recently attempted to upgrade from Jaeger 2.5.0 to 2.6.0, but I have ran into a bug with Index Creation using the opensearch storage backend which is causing my Jaeger service to fail.

This commit 1b1cfe2 by @timonegk sets the gzip encryption by default, but I do not believe we want this on the call to create the index, rather just on calls which submit traces.

Rolling back to 2.5.0 successfully creates my index.

Steps to reproduce

Setup latest jaeger 2.6.0 to use an AWS Opensearch storage backend
Attempt to start Jaeger, see failure in OS Index creation.
Roll back to 2.5.0 and see OS Index creation succeed.

Expected behavior

Index creates successfully and my Jaeger instance turns healthy.

Relevant log output

`Error: cannot start pipelines: failed to start "jaeger_storage_exporter" exporter: cannot create trace write: failed to create template "traces-jaeger-span": elastic: Error 500 (Internal Server Error): Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes [type=not_x_content_exception]`

Screenshot

No response

Additional context

No response

Jaeger backend version

2.6.0

SDK

Latest jaeger version attempting to store traces in 2.19 Opensearch AWS.
https://github.com/jaegertracing/jaeger/blob/main/cmd/jaeger/config-opensearch.yaml Use this configuration.

Pipeline

No response

Stogage backend

AWS OpenSearch

Operating system

Linux

Deployment model

ECS

Deployment configs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions