Closed mpuchol-netquest closed 2 months ago
yep, thanks for the report!
easy fix would be allowing only one publish operation concurrently. but probably we can allow one per underlying storage.
+1 for this
I checked the code and I don't think aptly can do any two concurrent publishes in API mode (not mentioning two concurrent publishes to S3).
Hi, I am hitting this issue quite often recently. Looks like for S3 some delay is needed before https://github.com/aptly-dev/aptly/blob/master/s3/public.go#L395
On versioned buckets .tmp
files are created but looks like move is performed before storage gets consistency. Further reading:
https://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html#CoreConcepts "Amazon S3 Data Consistency Model"
When a repository is being updated to S3, if there is another thread doing the same action, last action can fails.
The following log show previous case:
I guess this error should happen even updating on disk.
Adding a mutual exclusion on PUT could fix this problem.
Aptly version: 0.9.7~dev