question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fget_object has race

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jahodfracommented, Mar 6, 2020

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.

0reactions
balamuruganacommented, May 25, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found