Skip to content

[7.9] Fix handling of final pipelines when destination is changed (#59522)#59756

Merged
probakowski merged 1 commit intoelastic:7.9from
probakowski:backport/7.9/pr-59522
Jul 17, 2020
Merged

[7.9] Fix handling of final pipelines when destination is changed (#59522)#59756
probakowski merged 1 commit intoelastic:7.9from
probakowski:backport/7.9/pr-59522

Conversation

@probakowski
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.9:

Fix handling of final pipelines when destination is changed (#59522)

…astic#59522) (elastic#59746)

* Fix handling of final pipelines when destination is changed (elastic#59522)

This change fixes final pipelines if destination index is changed during pipeline run:
-final pipelines can't change destination anymore, exception is thrown if they try to
-if request/default pipeline changes destination final pipeline from old index won't be executed
-if request/default pipeline changes destination and new index has final pipeline it will be executed
-default pipeline from new index won't be executed
Additionally TransportBulkAction.resolvePipelines was moved to IngestService as it's needed for resolving pipelines from new index. Tests were moved accordingly.

Closes elastic#57968
@probakowski
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-sample-windows

@probakowski probakowski merged commit cc27efc into elastic:7.9 Jul 17, 2020
@probakowski probakowski deleted the backport/7.9/pr-59522 branch July 17, 2020 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant