-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[RollupV2] Move rollup metadata to field mappings #69921
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
Conversation
Also, added source index uuid in the rollup index metadata. Removed rollup group and rollup metadata as they are not used any more.
|
Pinging @elastic/es-analytics-geo (Team:Analytics) |
talevy
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.
I'm glad to see this change come in! I think it is great to leverage the mapping metadata to hold this information.
...ugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/v2/RollupActionSingleNodeTests.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/RollupMetadata.java
Show resolved
Hide resolved
x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/v2/TransportRollupAction.java
Show resolved
Hide resolved
talevy
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.
I left some additional comments
server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java
Outdated
Show resolved
Hide resolved
...ugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/v2/RollupActionSingleNodeTests.java
Outdated
Show resolved
Hide resolved
|
@elasticmachine run elasticsearch-ci/1 |
talevy
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.
Left one testing comment, but no need to iterate. LGTM
| return response; | ||
| } | ||
|
|
||
| private void assertRollupIndex(RollupActionConfig config) { |
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.
maybe this method should be removed and replaced with direct calls to assertRollupIndex(config, index, rollupIndex) so things are more explicit
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.
Thanks a lot for the feedback and all the help.
I am removing assertRollupIndex(RollupActionConfig config) and also rollup(RollupActionConfig config)
|
@elasticmachine run elasticsearch-ci/bwc |
This PR moves field related rollup metadata from the index metadata to the field mapping metadata.
- date_histogram fields is moved to the timestamp field
(fields are fixed_interval or calendar_interval, time_zone)
- histogram fields are moved to the numeric field on which the the histogram is computed
(the field is named interval)
Also, the index uuid has been added to the index rollup settings as index.rollup.source.uuid
and index.rollup.source.name
The rest of the RollupMetadata has been removed and no rollup metadata exists in the global
cluster state.
Co-authored-by: Tal Levy <[email protected]>
Backports #69921 to 7.x This PR moves field related rollup metadata from the index metadata to the field mapping metadata. date_histogram fields is moved to the timestamp field (fields are fixed_interval or calendar_interval, time_zone) histogram fields are moved to the numeric field on which the the histogram is computed (the field is named interval) Also, the index uuid has been added to the index rollup settings as index.rollup.source.uuid and index.rollup.source.name The rest of the RollupMetadata has been removed. Finally, no rollup metadata exists in the global cluster state Co-authored-by: Tal Levy <[email protected]>
This PR moves field related rollup metadata from the index metadata to the field mapping metadata.
date_histogramfields is moved to the timestamp field (fields arefixed_intervalorcalendar_interval,time_zone)histogramfields are moved to the numeric field on which the the histogram is computed (the field is namedinterval)Also, the index uuid has been added to the index rollup settings as
index.rollup.source.uuidandindex.rollup.source.nameThe rest of the
RollupMetadatahas been removed. Finally, no rollup metadata exists in the global cluster state