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

Validate enrich index before completing policy execution #100106

Merged

Conversation

jbaiera
Copy link
Member

@jbaiera jbaiera commented Sep 29, 2023

In some cases it is possible for the enrich index being constructed by an executing policy to be deleted. In the event that this happens, there is a chance that the index will be recreated incorrectly. In some cases this can lead to an incomplete enrich index to be promoted to the current index. This PR adds a validation step to the end of an enrich policy run to ensure the integrity of the enrich index that is about to be promoted.

Relates to #99725 but further changes will be needed to fully close that issue.

@jbaiera jbaiera added >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP auto-backport-and-merge Automatically create backport pull requests and merge when ready v8.11.0 v7.17.14 v8.10.3 labels Sep 29, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Sep 29, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine
Copy link
Collaborator

Hi @jbaiera, I've created a changelog YAML for you.

@joegallo joegallo self-requested a review September 29, 2023 21:52
Copy link
Contributor

@joegallo joegallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jbaiera jbaiera merged commit 225db31 into elastic:main Oct 2, 2023
12 checks passed
@jbaiera jbaiera deleted the enrich-validate-policy-index-before-promotion branch October 2, 2023 20:14
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
7.17 Commit could not be cherrypicked due to conflicts
8.10 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 100106

jbaiera added a commit that referenced this pull request Oct 2, 2023
Build failures seem to be related to #100106 being based on a stale view of main
jbaiera added a commit to jbaiera/elasticsearch that referenced this pull request Oct 2, 2023
)

This PR adds a validation step to the end of an enrich policy run to ensure the integrity of the
enrich index that is about to be promoted.

(cherry picked from commit 225db31)

# Conflicts:
#	x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunner.java
#	x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunnerTests.java
@jbaiera
Copy link
Member Author

jbaiera commented Oct 2, 2023

💚 All backports created successfully

Status Branch Result
8.10
7.17

Questions ?

Please refer to the Backport tool documentation

jbaiera added a commit to jbaiera/elasticsearch that referenced this pull request Oct 2, 2023
)

This PR adds a validation step to the end of an enrich policy run to ensure the integrity of the
enrich index that is about to be promoted.

(cherry picked from commit 225db31)

# Conflicts:
#	x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunner.java
#	x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunnerTests.java
jbaiera added a commit that referenced this pull request Oct 3, 2023
…100160)

This PR adds a validation step to the end of an enrich policy run to ensure the integrity of the
enrich index that is about to be promoted.

(cherry picked from commit 225db31)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jbaiera added a commit that referenced this pull request Oct 3, 2023
…100158)

This PR adds a validation step to the end of an enrich policy run to ensure the integrity of the
enrich index that is about to be promoted.

(cherry picked from commit 225db31)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready >bug :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team v7.17.14 v8.10.3 v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants