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

Retrying an upload can fail in append-only mode #196

Open
MichaelEischer opened this issue Sep 10, 2022 · 0 comments
Open

Retrying an upload can fail in append-only mode #196

MichaelEischer opened this issue Sep 10, 2022 · 0 comments

Comments

@MichaelEischer
Copy link
Member

Output of rest-server --version

0.11.0

What should rest-server do differently?

As discussed in #195 (comment) there is a possibility that retrying the upload for a file may fail in append-only mode:

if an upload for an append-only repository succeeds without the client learning about that fact, this will cause later retries to fail. It would be possible for the rest-server to accept a reupload iff that upload has the expected file hash.

Another option would be to return a special status code to signal to restic that the file in question already exists.

What are you trying to do? What is your use case?

Ensure uploads work reliably even when retries are necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant