Issue249#250
Open
bnlawrence wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #249 by ensuring that fsspec cat_ranges failures don’t get propagated downstream as “buffer” objects (e.g., timeout exception instances), and are instead raised immediately so callers see the real I/O error.
Changes:
- Added a
ChunkRead._cat_ranges_raise()helper to callfs.cat_ranges(..., on_error="raise")when supported, and to raise any exception objects returned in the buffers list. - Routed both bulk chunk reads (
_read_bulk_fsspec) and b-tree node fetches (_make_btree_fetch_fn) through the new helper. - Updated/added unit tests to assert
on_error="raise"is passed and that returned exception instances are raised.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pyfive/h5d.py |
Introduces a shared cat_ranges wrapper that forces fsspec errors to raise, and uses it in both bulk chunk reads and b-tree parallel fetches. |
tests/test_btree_parallel.py |
Extends dummy fsspec FS and adds tests verifying on_error="raise" usage and that returned exceptions are raised. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #250 +/- ##
==========================================
- Coverage 78.48% 78.18% -0.30%
==========================================
Files 15 15
Lines 3416 3429 +13
Branches 546 549 +3
==========================================
Hits 2681 2681
- Misses 593 604 +11
- Partials 142 144 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses #249 - which arises from the fact that by default fsspec does not raise errors but simply return them as error instances for the caller to deal with. pyfive could try and do something sensible with fsspec related errors, but a minimal solution for now is simply pass them up the stack.
Closes #249
Before you get started
Checklist