Skip to content

Skip automatically preserved request headers when rewriting (#79973)#79984

Merged
elasticsearchmachine merged 1 commit intoelastic:7.16from
ywangd:es-79948-request-header-threadcontext-7.16
Oct 28, 2021
Merged

Skip automatically preserved request headers when rewriting (#79973)#79984
elasticsearchmachine merged 1 commit intoelastic:7.16from
ywangd:es-79948-request-header-threadcontext-7.16

Conversation

@ywangd
Copy link
Copy Markdown
Member

@ywangd ywangd commented Oct 28, 2021

In #79412 we fixed a bug that request headers got dropped when the
request is sent across to a node of different version. The fix is to
restore all existing request headers during the threadContext rewriting.
However, there are headers that are always automatically preserved by
the ThreadContext infrastructure, e.g. x-opaque-id. This causes failures
when the code tries to re-add the x-opaque-id header since it already
exists. An example of this issue is for CCS where the remote cluster is
often on a different version compared to the local cluster.

Resolves: #79412

Backport: #79973

…79973)

In elastic#79412 we fixed a bug that request headers got dropped when the
request is sent across to a node of different version. The fix is to
restore all existing request headers during the threadContext rewriting.
However, there are headers that are always automatically preserved by
the ThreadContext infrastructure, e.g. x-opaque-id. This causes failures
when the code tries to re-add the x-opaque-id header since it already
exists. An example of this issue is for CCS where the remote cluster is
often on a different version compared to the local cluster.

Resolves: elastic#79412
@ywangd ywangd added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 28, 2021
@ywangd ywangd added v7.16.0 and removed v7.16.1 labels Oct 28, 2021
@elasticsearchmachine elasticsearchmachine merged commit ecc6200 into elastic:7.16 Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants