-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
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:
- Assume 7.16 has a 7.15 as a remote cluster named
7_15 - Assume
7_15has data inmy-indexindex - 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
- Now run against 7.16 adding
x-opaque-idheader:
GET /_resolve/index/7_15:* HTTP/1.1
Host: localhost:9200
x-opaque-id: test
Observe empty results
Additional context:
-
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-idheader: Unable to create Index pattern when 7.16 is parent build and 7.15 is child build in CCS setup. kibana#116399 (comment) -
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
-
Possibly related pull request: Preserve request headers in a mixed version cluster #79412