fake-gcs-server
fake-gcs-server copied to clipboard
Race-free Preconditions
This fixes an issue we've experienced, where "IfNotExist"-style uploads have exhibited racy behavior, specified to not exist in production GCS.
Apologies in advance for my lack of Go experience. I'm sure much of this patch is non-idiomatic, and it is submitted as much as a basis for discussion, as an actual proposal.
Thank you for contributing! I'll take a look at this change over the next couple of days, but there's definitely no reason to apologize, if anything in the code needs improvements, we'll work on it!
@rawler can you take a look at the build failure?
@rawler can you take a look at the build failure?
I looked into them, but I don't understand how it's caused by what I did. From what I see, the cause seems to be:
bucket_test.go:278: rename C:\Users\RUNNER~1\AppData\Local\Temp\fakestorage-test-root-1941404170\some-bucket\fake-gcs-object3621328271 C:\Users\RUNNER~1\AppData\Local\Temp\fakestorage-test-root-1941404170\some-bucket\img%2Fhi-res%2Fparty-01.jpg: Access is denied.
@rawler ugh ok, I'll dig into that. Thank you for your patience!
Any time to work on this? Let me know if I can contribute in any way.
I'm not blocked by this, but carrying a fork that I'd love to clean up :)
Hey, sorry, things have been a bit busy on my side, but I believe I'll have a chance to look into it (both the test failure and review the code) this weekend.
Thank you very much for your contribution and your patience!