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
Deleting local snapshots using criteria should take into account the timestamp #18112
Comments
// cc @stephenmcd |
Thanks Konrad. Any comment on the patch? Would you like me to set up a PR? |
Ignore my previous message here, I read this before the mailing list thread. I'll set up a PR. |
Thanks! :-) |
I think this issue is invalid. The SnapshotSeqNrFilenameFilter that was pointed out to ignore the timestamp is only used when deleting one single snapshot by its sequence number. User api does not include a timestamp. I can't see anything wrong with the deleteSnapshots with a criteria. That one takes both seqNr and timestamp into account. |
Hi @patriknw, thanks for looking at this.
On the surface it looks that way, but I think there's still a problem - Also as far as I've seen with Given that, do you think my patch is the correct fix, or something else? For my project I've copied Thanks again, and sorry if I've overlooked something. |
Thanks for clarifying. Now it makes sense. |
No problem at all. |
It was actually used for finding the right metadata, but the local store deleted all files with matching seqNr. Note that we use 0L as undefined value for the timestamp when deleting single snapshot (and therefore it makes sense to delete all in that case)
…mp-patriknw =per #18112 Use timestamp in deleteSnapshots
thanks for reporting and confirming |
Discovered by Stephen McDonald in the akka-user thread: https://groups.google.com/forum/#!searchin/akka-user/localsnapshotstore$20ignores$20timestamps/akka-user/0CpgVgi0PE8/6gYW5v6zjToJ
Attached diff:
The text was updated successfully, but these errors were encountered: