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

Prevent downsample indices to inherit pipeline-related index settings #96478

Closed
salvatore-campagna opened this issue Jun 1, 2023 · 0 comments · Fixed by #96494
Closed

Prevent downsample indices to inherit pipeline-related index settings #96478

salvatore-campagna opened this issue Jun 1, 2023 · 0 comments · Fixed by #96494
Labels
backport >bug :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data v8.8.1 v8.9.0

Comments

@salvatore-campagna
Copy link
Contributor

salvatore-campagna commented Jun 1, 2023

Elasticsearch Version

8.7

Installed Plugins

No response

Java Version

bundled

OS Version

All

Problem Description

When downsampling a source index into a target index, the target index is created copying some settings from the source index. Among the settings we copy there are two of them index.default_pipeline and index.final_pipeline which control execution of ingest pipelines for the (target) index. As a result of the transformation we apply to the target (downsampled) index, including aggregation of metric fields, it is possible that the pipeline script execution fails because some metric fields are converted to aggregate_metric_double fields. These fields are not accessible in the same way as the original ones since they are of different type and because they just include aggregate metrics (sum, min, max and value_count).

We need to skip copying the two settings, index.default_pipeline and index.final_pipeline, from the source index to the target index in order to avoid pipeline processing to be applied to the target (downsampled) index.

NOTE: the two settings might be inherited by a source index that is part of a data stream

Steps to Reproduce

Try to downsample a source index that has the following two settings index.default_pipeline and index.final_pipeline. The target index will include the same settings. That should not be the case.

Logs (if relevant)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :StorageEngine/Rollup Turn fine-grained time-based data into coarser-grained data v8.8.1 v8.9.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant