opensearch-project / opensearch-migrations

Migrate, upgrade, compare, and replicate OpenSearch clusters with ease.
https://aws.amazon.com/solutions/implementations/migration-assistant-for-amazon-opensearch-service/
Apache License 2.0
39 stars 28 forks source link

How to leverage Flux to preserve the sequence of bulk puts... #1157

Open gregschohn opened 1 day ago

gregschohn commented 1 day ago

Description

This is a partial and rough implementation of AndreKurait's idea that sequences bulk put responses into a flux that's effectively a progress report. We can then use that to monitor and update the last watermark that we've made it to for purposes of writing the work continuation record when a lease expires.

TODO:

Testing

Tests break - this PR is to communicate the idea.

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.