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

[8.10] Support $ and / in ccr follow (#99892) #100294

Merged

Conversation

Tim-Brooks
Copy link
Contributor

Backports the following commits to 8.10:

Currently the renameReplacement variable in the restore snapshot request
is intended to be a string literal for ccr. However, when a string is passed
to replaceAll in java $ and / will be treated as special characters. This
means that following indices with $ in them breaks. This commit fixes the
issue by quoting the special characters before calling replaceAll.

Fixes elastic#99078.
@Tim-Brooks Tim-Brooks added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >bug auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Distributed Meta label for distributed team labels Oct 4, 2023
@elasticsearchmachine elasticsearchmachine merged commit 657cb5d into elastic:8.10 Oct 4, 2023
12 checks passed
@Tim-Brooks Tim-Brooks deleted the backport/8.10/pr-99892 branch October 4, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team v8.10.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants