Skip to content

[7.x] [Upgrade Assistant] Fix edge case where reindex op can falsely be seen as stale (#60770)#61082

Merged
jloleysens merged 1 commit intoelastic:7.xfrom
jloleysens:backport/7.x/pr-60770
Mar 24, 2020
Merged

[7.x] [Upgrade Assistant] Fix edge case where reindex op can falsely be seen as stale (#60770)#61082
jloleysens merged 1 commit intoelastic:7.xfrom
jloleysens:backport/7.x/pr-60770

Conversation

@jloleysens
Copy link
Contributor

Backports the following commits to 7.x:

…n as stale (elastic#60770)

* Fix edge case where reindex op is can falsely be seen as stale

This is for multiple Kibana workers, to ensure that an item just
coming off the queue is seen as "new" we set a "startedAt" field
which will update the reindex op and give it the full timeout
window.

* Update tests to use new api too

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/upgrade_assistant/server/lib/reindexing/error.ts
#	x-pack/plugins/upgrade_assistant/server/lib/reindexing/error_symbols.ts
#	x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts
#	x-pack/plugins/upgrade_assistant/server/lib/reindexing/worker.ts
@jloleysens jloleysens added the backport This PR is a backport of another PR label Mar 24, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jloleysens jloleysens merged commit 8d39068 into elastic:7.x Mar 24, 2020
@jloleysens jloleysens deleted the backport/7.x/pr-60770 branch March 24, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants