filesystem_spec icon indicating copy to clipboard operation
filesystem_spec copied to clipboard

Fixes #1541: HTTPFilesystem has a race condition on data size between the open and read class, if content changes at server between the 2 class

Open masariello opened this issue 1 year ago • 2 comments

masariello avatar Mar 08 '24 13:03 masariello

I'm pretty sure this will either convert regular HTTPFiles to HTTPStreamFiles (no random access) or fail on seek(.., 2). We should have explicit checks on those conditions to be sure.

martindurant avatar Apr 03 '24 14:04 martindurant

Indeed, this breaks a bunch of tests, like:

>       if start >= self.size or start >= end:
E       TypeError: '>=' not supported between instances of 'int' and 'NoneType'

martindurant avatar Apr 03 '24 14:04 martindurant