-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Do not copy index.default_pipeline and index.final_pipeline #96494
Merged
salvatore-campagna
merged 6 commits into
elastic:main
from
salvatore-campagna:fix/96478-downsamplig-default-pipeline
Jun 1, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a406836
fix: do not copy index.default_pipeline and index.final_pipeline
salvatore-campagna b974569
Update docs/changelog/96494.yaml
salvatore-campagna 624ab10
fix: use Set.of
salvatore-campagna 2874499
fix: align comment to code
salvatore-campagna 8a3cfee
test: check index.default_pipeline and index.final_pipeline are not c…
salvatore-campagna 66102fa
fic: check the pipeline works on source index
salvatore-campagna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 96494 | ||
summary: Do not copy `index.default_pipeline` and `index.final_pipeline` | ||
area: Rollup | ||
type: bug | ||
issues: | ||
- 96478 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
...lugin/rollup/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/rollup/60_settings.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
"Downsample index with pipeline": | ||
- skip: | ||
version: " - 8.4.99" | ||
reason: "rollup renamed to downsample in 8.5.0" | ||
|
||
- do: | ||
ingest.put_pipeline: | ||
id: "pipeline" | ||
body: > | ||
{ | ||
"processors": [ | ||
{ | ||
"set" : { | ||
"field" : "field", | ||
"value": 42 | ||
} | ||
} | ||
] | ||
} | ||
|
||
- do: | ||
indices.create: | ||
index: test | ||
body: | ||
settings: | ||
number_of_shards: 1 | ||
number_of_replicas: 0 | ||
index: | ||
default_pipeline: "pipeline" | ||
final_pipeline: "pipeline" | ||
mode: time_series | ||
routing_path: [metricset, k8s.pod.uid] | ||
time_series: | ||
start_time: 2021-04-28T00:00:00Z | ||
end_time: 2021-04-29T00:00:00Z | ||
mappings: | ||
properties: | ||
"@timestamp": | ||
type: date | ||
metricset: | ||
type: keyword | ||
time_series_dimension: true | ||
value: | ||
type: double | ||
time_series_metric: gauge | ||
- do: | ||
bulk: | ||
refresh: true | ||
index: test | ||
body: | ||
- '{"index": {}}' | ||
- '{"@timestamp": "2021-04-28T18:50:04.467Z", "metricset": "pod", "value": 10}' | ||
|
||
- do: | ||
search: | ||
index: test | ||
body: | ||
query: | ||
match_all: {} | ||
|
||
- match: { hits.total.value: 1 } | ||
- match: { hits.hits.0._source.field: 42 } | ||
|
||
- do: | ||
indices.put_settings: | ||
index: test | ||
body: | ||
index.blocks.write: true | ||
|
||
- do: | ||
indices.downsample: | ||
index: test | ||
target_index: test-rollup | ||
body: > | ||
{ | ||
"fixed_interval": "1h" | ||
} | ||
|
||
- do: | ||
indices.get_settings: | ||
index: test | ||
|
||
- match: { test.settings.index.default_pipeline: "pipeline" } | ||
- match: { test.settings.index.final_pipeline: "pipeline" } | ||
|
||
- do: | ||
indices.get_settings: | ||
index: test-rollup | ||
|
||
- match: { test-rollup.settings.index.default_pipeline: null } | ||
- match: { test-rollup.settings.index.final_pipeline: null } | ||
|
||
|
||
--- | ||
teardown: | ||
- do: | ||
ingest.delete_pipeline: | ||
id: "pipeline" | ||
ignore: 404 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 update this comment too?