Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete api date time resolution for snapshots #50833

Closed
sudo-su-tony opened this issue Jan 10, 2020 · 2 comments
Closed

delete api date time resolution for snapshots #50833

sudo-su-tony opened this issue Jan 10, 2020 · 2 comments
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Comments

@sudo-su-tony
Copy link

First off I'm very new to Elastic, currently running open distro, but I tested this on normal Elastic too.
I was trying to delete snapshots using the delete api with an expression something like this

DELETE _snapshot/my_repository/%3Cname-%7Bnow%2FM-1M%7Byyyy.MM%7D%7D%3E

and it would return:
[my_repository:<name-{now/M-1M{yyyy.MM}}>] is missing

which means the api didn't resolve the datetime expression I think.
I no longer need to do this (turns out it was a mistake anyways), but I thought I'd report this in case it's unintended because I couldn't find anything relating to it on google.

sudo su

@cbuescher cbuescher added the :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs label Jan 10, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@original-brownbear
Copy link
Member

Hi @sudo-su-tony

thanks for raising this, it's a good point and fortunately known.

Currently, deleting multi snapshots in one go is not supported so there's no support for any kind of expression here either. I'm currently implementing deleting multiple snapshots at once as a new feature in #49800 so some form of this is eventually incoming.

For now everything is working as intended, so I'm closing here as we already have #49800.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs
Projects
None yet
Development

No branches or pull requests

4 participants