Skip to content

x-opaque-id header breaks CCS in mixed version cluster #79948

@Dosant

Description

@Dosant

Elasticsearch version (bin/elasticsearch --version): 7.16.0 bc1 (also potentially 7.15.2)

Description of the problem including expected versus actual behavior:

Presence of x-opaque-id header changes cross cluster search behavior in mixed version cluster

When header is missing cross cluster search works as expected,
When header is present cross cluster search doesn't work

Steps to reproduce:

  1. Assume 7.16 has a 7.15 as a remote cluster named 7_15
  2. Assume 7_15 has data in my-index index
  3. Run against 7.16:
GET /_resolve/index/7_15:* HTTP/1.1
Host: localhost:9200

Observe correct result with return indices from 7.15 cluster resolved

  1. Now run against 7.16 adding x-opaque-id header:
GET /_resolve/index/7_15:* HTTP/1.1
Host: localhost:9200
x-opaque-id: test

Observe empty results

Additional context:

  1. This popped up in Kibana: Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. kibana#116399, where it can't resolve CCS indices via index pattern creation UI, but can using Dev tools. I found that the difference in the requests that causing this is x-opaque-id header: Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. kibana#116399 (comment)

  2. I didn't reproduce with 7.15.1 -> 7.14, but I did reproduce with 7.15 snapshot -> 7.14. Likely the bug is introduced in 7.15.2

  3. Possibly related pull request: Preserve request headers in a mixed version cluster #79412

Metadata

Metadata

Assignees

Labels

:Distributed Indexing/CCRIssues around the Cross Cluster State Replication features>non-issueTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Team:SearchMeta label for search team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions