Skip to content

Conversation

@martindurant
Copy link
Member

Fixes #868

@martindurant martindurant merged commit bdaf5aa into fsspec:master Dec 22, 2021
@martindurant martindurant deleted the put_sure branch December 22, 2021 14:36
with self.open(rpath, "wb", **kwargs) as f2:
data = True
while data:
while f2.tell() < size:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not f1.tell() < size? If f2.write() silently failed to write a chunk, then this would go into an infinite loop where f1.read() thinks it's done but f2 never gets the whole file

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, that really shouldn't happen, but I'd be OK with your suggestion. Do you want to make that follow-on PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs.put_file flakily uploading 0 bytes

2 participants