Is your feature request related to a problem? Please describe.
For a client, we're running nix-store-gcs-proxy with a retention policy. There's a race condition causing duplicate uploads to the narinfo file. Possibly other files as well.
Currently, nix-store-gcs-proxy doesn't handle this case and returns a 502 error.
Describe the solution you'd like
I would like nix-store-gcs-proxy to detect this error, and then either:
check the file contents and noop on duplicate uploads
return a 409 Conflict status and let nix handle the rest (it doesn't, currently)
Is your feature request related to a problem? Please describe.
For a client, we're running nix-store-gcs-proxy with a retention policy. There's a race condition causing duplicate uploads to the narinfo file. Possibly other files as well.
Currently, nix-store-gcs-proxy doesn't handle this case and returns a 502 error.
Describe the solution you'd like I would like nix-store-gcs-proxy to detect this error, and then either:
409 Conflict
status and let nix handle the rest (it doesn't, currently)Describe alternatives you've considered
Additional context Add any other context or screenshots about the feature request here.
cc @sir4ur0n