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

Set index mode earlier for new downsample index #106728

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

lkts
Copy link
Contributor

@lkts lkts commented Mar 25, 2024

Downsample index is created using temporary index service using a
static predefined subset of index settings. All other settings are later
copied over from source index. As discovered in #106338 this causes
context like index mode to be missing during initial index creation
process. This PR adds index mode and related required settings to
initial set of index settings in order to have access to this
information during initial create index operation.

Downsample index is created using temporary index service using a
static predefined subset of index settings. All other settings are later
 copied over from source index. As discovered in elastic#106338 this causes
 context like index mode to be missing during initial index creation
 process. This PR adds index mode and related required settings to
 initial set of index settings in order to have access to this
 information during initial create index operation.
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v8.14.0 labels Mar 25, 2024
@lkts lkts added :StorageEngine/TSDB You know, for Metrics :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data Team:StorageEngine labels Mar 25, 2024
@lkts lkts requested a review from martijnvg March 25, 2024 18:54
@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Mar 25, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@lkts
Copy link
Contributor Author

lkts commented Mar 25, 2024

I am relying on existing tests to cover this (there should be no changes in behavior anywhere, this PR just changes when something happens) and later it will be tested as part of #106338.

@martijnvg martijnvg added >non-issue and removed :StorageEngine/TSDB You know, for Metrics >refactoring labels Mar 26, 2024
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

I agree that existing tests should cover the correctness of this change.

@lkts lkts merged commit f51064a into elastic:main Mar 26, 2024
14 checks passed
@lkts lkts deleted the fix/downsample_index_settings_fix branch March 26, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data Team:StorageEngine v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants