Skip to content

Conversation

martindurant
Copy link
Member

cf #1869

@martindurant
Copy link
Member Author

@zlmarshall

@zlmarshall
Copy link

Absolutely beautiful. Thank you, this is a HUGE help to us!!

@martindurant martindurant merged commit 0ddc423 into fsspec:master Jul 3, 2025
10 checks passed
@martindurant martindurant deleted the async-cache branch July 3, 2025 14:49
@ariostas
Copy link

@martindurant this PR seems to have broken something when writing files with simplecache. Some Uproot tests are failing (see here). Is there something that needs to be changed to adapt to this new change or is this a bug?

lpaths = [l for l, p in zip(lpaths, paths) if l is False]
self.fs.get(rpaths, lpaths)
return super().cat_ranges(
return LocalFileSystem().cat_ranges(

Choose a reason for hiding this comment

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

Why did this need to be changed? Switching this back fixes the issue

Copy link
Member Author

Choose a reason for hiding this comment

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

The original was pulling the bytes from remote, which is exactly what the cache filesystem is supposed to prevent, and what this PR was for. Are the file(s) really not in the local store?

However, I can see that this code is wrong. Can you try adding the following line before the one highlighted:

paths = [self._check_file(p) for p in paths]

Choose a reason for hiding this comment

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

Oh yeah, that fixes it!

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

3 participants