-
Notifications
You must be signed in to change notification settings - Fork 45
Snapshot implementation #135
Snapshot implementation #135
Conversation
e52ca9a
to
2c866cf
Compare
Pulled it down to check, seems like the |
Action has two steps: attempt_snapshot and wait_for_snapshot
2c866cf
to
08cd736
Compare
Hi @dabr-grapeup, Just a quicks heads-up, will be able to take a look at this towards the end of this week. Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dabr-grapeup,
Sorry for the late feedback, will take a look at the tests and wait for portion soon, left some comments in the meantime.
...n/kotlin/com/amazon/opendistroforelasticsearch/indexstatemanagement/action/SnapshotAction.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/model/action/SnapshotActionConfig.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/WaitForSnapshotStep.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Outdated
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Outdated
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Outdated
Show resolved
Hide resolved
replaced LinkedHashMap in SnapshotAction handle waitForSnapshotStep is not completed added usermetadata added hash at the end of the name set explicit waitForCompletion using CONDITION_NOT_MET
…s' into opendistro-for-elasticsearch#45-snapshot # Conflicts: # src/main/kotlin/com/amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Hi @dbbaugh, thanks for your comments, we have fixed some of the issues that you commented, let me know if you spot something else. Thanks |
1538ece
to
ffbfe0f
Compare
+ Restore snapshot name with timestamp
ffbfe0f
to
3c14c66
Compare
Thanks @dabr-grapeup and @JavierAbrego, Will pull down and take another look at it. The main thing I see from GitHub is the global state parameter which I think we'll need to remove. But, let me confirm it has the negative effect we're trying to avoid. @jinsoor-amzn @qreshi Can one of you also take a look as second reviewer |
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Outdated
Show resolved
Hide resolved
...m/amazon/opendistroforelasticsearch/indexstatemanagement/IndexStateManagementRestTestCase.kt
Outdated
Show resolved
Hide resolved
...m/amazon/opendistroforelasticsearch/indexstatemanagement/IndexStateManagementRestTestCase.kt
Outdated
Show resolved
Hide resolved
...kotlin/com/amazon/opendistroforelasticsearch/indexstatemanagement/action/SnapshotActionIT.kt
Outdated
Show resolved
Hide resolved
.../amazon/opendistroforelasticsearch/indexstatemanagement/step/snapshot/AttemptSnapshotStep.kt
Show resolved
Hide resolved
Hi @dabr-grapeup @JavierAbrego - There are some changes our reviewers have requested. Could you please take a look and make the requested changes so that we can merge. Please let us know if you have any questions! Thanks for your patience on this PR :-) |
Hello @alolita @jinsoor-amzn @dbbaughe, thanks for your comments, I've pushed the changes. |
Hey @JavierAbrego, Thanks for the quick update, I believe there was just one comment missed here. I tested the include_global_state option and it's not something we can include in this first release as it doesn't work well with ISM's metadata in the cluster state. We'll need to address it in a follow up release. Should be able to just remove the logic where it's added to the create snapshot request. Once we get that removed we should be able to merge. |
Sure @dbbaughe I just removed the logic. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patience in getting this in @dabr-grapeup and @JavierAbrego :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thank you for your patience and contributions @dabr-grapeup and @JavierAbrego
Issue #, if available: #45
Description of changes:
Action for creating snapshot with two steps: attempt_snapshot and wait_for_snapshot
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.