Skip to content

Set index mode earlier for new downsample index#106728

Merged
lkts merged 2 commits intoelastic:mainfrom
lkts:fix/downsample_index_settings_fix
Mar 26, 2024
Merged

Set index mode earlier for new downsample index#106728
lkts merged 2 commits intoelastic:mainfrom
lkts:fix/downsample_index_settings_fix

Conversation

@lkts
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

@lkts
Copy link
Copy Markdown
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
Copy Markdown
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
@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