Skip to content

Changing wait_for_snapshot to check start time rather than finish time#75644

Merged
masseyke merged 34 commits intoelastic:masterfrom
masseyke:fix/73357
Jul 30, 2021
Merged

Changing wait_for_snapshot to check start time rather than finish time#75644
masseyke merged 34 commits intoelastic:masterfrom
masseyke:fix/73357

Conversation

@masseyke
Copy link
Copy Markdown
Member

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).

@masseyke masseyke requested a review from dakrone July 22, 2021 18:25
@dakrone dakrone added the :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. label Jul 22, 2021
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/docs

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine update branch

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/part-1

@masseyke masseyke marked this pull request as ready for review July 27, 2021 22:08
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Jul 27, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Keith, I left some comments, nothing too major though.

Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for iterating on it Keith!

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/part-2

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine update branch

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/part-2

@masseyke
Copy link
Copy Markdown
Member Author

@elasticmachine run elasticsearch-ci/part-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.15.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ILM uses end-time of SLM snapshot when waiting for snapshot

6 participants