Changing wait_for_snapshot to check start time rather than finish time#75644
Changing wait_for_snapshot to check start time rather than finish time#75644masseyke merged 34 commits intoelastic:masterfrom
Conversation
dakrone
left a comment
There was a problem hiding this comment.
I left some comments, I think in a separate change we should also look at renaming the existing timestamp field to indicate that it is the finish time rather than the start time (but since that is a breaking change we should do it in a separate PR)
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/WaitForSnapshotStepTests.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotLifecycleTask.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
|
@elasticmachine run elasticsearch-ci/docs |
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/part-1 |
|
Pinging @elastic/es-core-features (Team:Core/Features) |
dakrone
left a comment
There was a problem hiding this comment.
Thanks Keith, I left some comments, nothing too major though.
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitForSnapshotStep.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/slm/SnapshotInvocationRecord.java
Outdated
Show resolved
Hide resolved
...lti-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/TimeSeriesLifecycleActionsIT.java
Show resolved
Hide resolved
x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/slm/SnapshotLifecycleTask.java
Outdated
Show resolved
Hide resolved
dakrone
left a comment
There was a problem hiding this comment.
LGTM, thanks for iterating on it Keith!
|
@elasticmachine run elasticsearch-ci/part-2 |
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/part-2 |
|
@elasticmachine run elasticsearch-ci/part-2 |
The wait_for_snapshot ILM action had been checking whether a snapshot had finished in the given time. However what is more important is that it had started in the given time. Since we weren't capturing the snapshot start time in the state store, most of this PR is about grabbing that information and putting it in the state store so that it is available (without having to do an expensive query).