-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Support $ and / in ccr follow #99892
Conversation
Currently the renameReplacement variable in the restore snapshot request is intended to be a string literal. However, when a string is passed to replaceAll in java $ and / will be treated as special characters. This means that restoring indices with $ in them occasionally breaks. This commit fixes the issue by quoting the special characters before calling replaceAll. Fixes elastic#99078.
Pinging @elastic/es-distributed (Team:Distributed) |
Hi @Tim-Brooks, I've created a changelog YAML for you. |
...ck/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/IndexFollowingIT.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/snapshots/RestoreService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the test failure is unrelated to the change. 👍
I believe the failed test has already been muted in #100192 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM2
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.
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.
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 #99078.
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 #99078.
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 #99078.