Skip to content

[7.x] Fix handling of final pipelines when destination is changed (#59522)#59746

Merged
probakowski merged 6 commits intoelastic:7.xfrom
probakowski:backport/7.x/pr-59522
Jul 17, 2020
Merged

[7.x] Fix handling of final pipelines when destination is changed (#59522)#59746
probakowski merged 6 commits intoelastic:7.xfrom
probakowski:backport/7.x/pr-59522

Conversation

@probakowski
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…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 probakowski merged commit 790fbbc into elastic:7.x Jul 17, 2020
@probakowski probakowski deleted the backport/7.x/pr-59522 branch July 17, 2020 09:13
probakowski added a commit to probakowski/elasticsearch that referenced this pull request Jul 17, 2020
…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
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