Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Dosant opened this issue Oct 27, 2021 · 4 comments · Fixed by #79973
Closed

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

Dosant opened this issue Oct 27, 2021 · 4 comments · Fixed by #79973
Assignees
Labels
:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. Team:Search Meta label for search team

Comments

@Dosant
Copy link
Contributor

Dosant commented Oct 27, 2021

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

@Dosant Dosant added >bug :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features needs:triage Requires assignment of a team area label labels Oct 27, 2021
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Oct 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@Dosant Dosant added the Team:Search Meta label for search team label Oct 27, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@ywangd
Copy link
Member

ywangd commented Oct 28, 2021

Thanks a lot for reporting the issue. I raised #79973 for the fix and will backport all the way to 7.15.2

@ywangd ywangd added >non-issue and removed needs:triage Requires assignment of a team area label >bug labels Oct 28, 2021
@ywangd
Copy link
Member

ywangd commented Oct 28, 2021

I added the >non-issue label and removed >bug because the buggy code has not been released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants