tweag / nix-store-gcs-proxy

A HTTP nix store that proxies requests to Google Storage
Apache License 2.0
9 stars 1 forks source link

Deal with `retentionPolicyNotMet` errors #9

Open yorickvP opened 1 year ago

yorickvP commented 1 year ago

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:

Describe alternatives you've considered

Additional context Add any other context or screenshots about the feature request here.

cc @sir4ur0n