We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a47160 commit 60dab54Copy full SHA for 60dab54
azure/datalake/store/core.py
@@ -865,6 +865,8 @@ def read(self, length=-1):
865
data_read = self.cache[self.loc - self.start:
866
min(self.loc - self.start + length, self.end - self.start)]
867
out += data_read
868
+ if len(data_read) == 0: # Check to catch possible server errors. Ideally shouldn't happen.
869
+ break
870
self.loc += len(data_read)
871
length -= len(data_read)
872
if self.loc >= self.size:
0 commit comments