Skip to content

[7.x] Rewriting SO id during migration (#97222)#98300

Merged
mshustov merged 2 commits intoelastic:7.xfrom
mshustov:backport/7.x/pr-97222
Apr 26, 2021
Merged

[7.x] Rewriting SO id during migration (#97222)#98300
mshustov merged 2 commits intoelastic:7.xfrom
mshustov:backport/7.x/pr-97222

Conversation

@mshustov
Copy link
Contributor

Backports the following commits to 7.x:

* some typos

* implement an alternative client-side migration algorithm

required to enforce idempotent id generation for SO

* update tests

* lol

* remove unnecessary param from request generic

* remove unused parameter

* optimize search when quierying SO for migration

* fix wrong type in fixtures

* try shard_doc asc

* add an integration test

* cleanup

* track_total_hits: false to improve perf

* add happy path test for transformDocs action

* remove unused types

* fix wrong typing

* add cleanup phase

* add an integration test for cleanup phase

* add unit-tests for cleanup function

* address comments

* Fix functional test

* set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase

* sourceIndex: Option.some<> for consistency

* Revert "set defaultIndex before each test. otherwise it is deleted in the first test file during cleanup phase"

This reverts commit a128d7b.

* address comments from Pierre

* fix test

* Revert "fix test"

This reverts commit 97315b6.

* revert min convert version back to 8.0

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
@mshustov mshustov added the backport This PR is a backport of another PR label Apr 26, 2021
@mshustov mshustov enabled auto-merge (squash) April 26, 2021 14:04
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@mshustov mshustov merged commit fce1f7e into elastic:7.x Apr 26, 2021
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