Skip to content

[Bug]: Archive trace returns 200 but does not write to Elasticsearch #8058

@domolitom

Description

@domolitom

What happened?

Clicking "Archive" on a trace in the Jaeger UI shows "This trace has been archived", but nothing is written to Elasticsearch. No archive indices are created and no errors are logged.

Calling the API directly confirms the issue — it returns HTTP 200 with an empty response that looks like a search result, not a write acknowledgment:

POST /api/archive/{traceID}
→ 200 {"data":[],"total":0,"limit":0,"offset":0,"errors":[]}

Steps to reproduce

  1. Deploy Jaeger v2.14.1 with Elasticsearch and traces_archive configured (see config below)
  2. Open a trace in the Jaeger UI
  3. Click the "Archive" button
  4. UI shows "This trace has been archived"
  5. Check Elasticsearch — no archive* indices exist

Expected behavior

The trace should be written to Elasticsearch under the archive index prefix, and archive-jaeger-span-* indices should appear.

Relevant log output

# No archive-related log output at all, even after clicking Archive.
# Startup logs show both stores initializing successfully:
Initializing storage 'archive_store_elasticsearch'
Elasticsearch detected  version=7
Initializing storage 'primary_store_elasticsearch'
Elasticsearch detected  version=7

Additional context

Primary storage works fine — jaeger-span-* and jaeger-service-* indices are created and populated. Only the archive write is silently failing.

Possibly related to #6225 (storage role assignment).

Jaeger setup

Jaeger backend version: v2.14.1

Storage backend: AWS OpenSearch 7.x (VPC endpoint)

Deployment configs:

extensions:
  jaeger_query:
    storage:
      traces: primary_store_elasticsearch
      traces_archive: archive_store_elasticsearch
  jaeger_storage:
    backends:
      primary_store_elasticsearch:
        elasticsearch:
          server_urls: ["https://my-opensearch.eu-west-1.es.amazonaws.com:443"]
      archive_store_elasticsearch:
        elasticsearch:
          server_urls: ["https://my-opensearch.eu-west-1.es.amazonaws.com:443"]
          indices:
            index_prefix: "archive"

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