fget_object has race
See original GitHub issueWhen the fget_object
is called twice it tries to download object into the same file and fails on the second call of the os.rename
.
Expected behavior - the temporary filename shouldn’t have etag in the name and instead it should use uuid.uuid4()
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Distributed server fails for listenBucketNotification · Issue #5125
there is a race bug in the functioanl-test.js ... prefix)__ fPutObject fGetObject ✓ fPutObject(bucketName, objectName, filePath, ...
Read more >runtime/thread.cc - platform/art - Git at Google
quick exit test: the barriers have already been claimed - this is. // possible as there may be a race to claim and...
Read more >[ROOT-9770] [DF] Race condition in Snapshot Created: 05 ... - CERN
[ROOT-9770] [DF] Race condition in Snapshot Created: 05/Nov/18 Updated: 13/Nov/18 Resolved: ... which I have been running on an lxplus-like openstack VM.
Read more >11 ways race isn't real - Vox
You've heard that race is a "social construct." These reminders of how silly racial categories are explain how that works in real life....
Read more >'Race' is an invented concept, but an impactful one ...
Ideas of race, racism have evolved throughout history. photo:Chris Bournea. Chris Bournea. Ohio State News.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m using https://pypi.org/project/filelock/ in the calling code to avoid that. I’m not sure if it makes sense to do it in the client, because filelock needs extra empty file for the lock.
@jahodfra
fget_object()
should work to resume partial download like other minio SDKs. Not working is an issue and will be fixed soon.The idea of using
<FILENAME>.<ETAG>.part.minio
is like a web browser download/resume functionality i.e. the browser deals with fixed name<FILENAME>.part
.