-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add action to copy index metadata when reindexing data stream indices #122535
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
Add action to copy index metadata when reindexing data stream indices #122535
Conversation
.../main/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamIndexTransportAction.java
Outdated
Show resolved
Hide resolved
...sterTest/java/org/elasticsearch/xpack/migrate/action/ReindexDataStreamTransportActionIT.java
Outdated
Show resolved
Hide resolved
- add action to internal user for reindex data stream - make request an IndicesRequest - rename to CopyLifecycleIndexMetadataAction - fix ILM state test
| } | ||
|
|
||
| public Builder putRolloverInfos(Map<String, RolloverInfo> rolloverInfos) { | ||
| this.rolloverInfos.clear(); |
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.
clearing the existing infos is a bit weirds, but seems better than making rolloverInfos non-final
|
Pinging @elastic/es-data-management (Team:Data Management) |
masseyke
left a comment
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.
LGTM
…elastic#122535) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
…elastic#122535) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata (cherry picked from commit aba25c6) # Conflicts: # x-pack/plugin/migrate/build.gradle
…elastic#122535) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata (cherry picked from commit aba25c6) # Conflicts: # x-pack/plugin/migrate/build.gradle
…#122535) (#122555) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata
…ndices (#122535) (#122559) * Add action to copy index metadata when reindexing data stream indices (#122535) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata (cherry picked from commit aba25c6) # Conflicts: # x-pack/plugin/migrate/build.gradle * remove timeouts which were not present in 8.x
…indices (#122535) (#122561) * Add action to copy index metadata when reindexing data stream indices (#122535) When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and data stream lifecycle function properly. This adds a new CopyLifecycleIndexMetadataTransportAction which copies the following metadata from a source index to a destination index: - creation date setting - rollover info - ILM custom metadata (cherry picked from commit aba25c6) # Conflicts: # x-pack/plugin/migrate/build.gradle * remove timeouts which were not present in 8.18
When reindexing data stream indices, parts of the index metadata needs to be copied from the source index to destination index, so that ILM and Data stream lifecycle continue to function properly. This adds a new
CopyLifecycleIndexMetadataTransportActionwhich copies the following metadata: