Commit efff544
feat(tensorstore): expose recheck_cached_data on TensorStoreConfig (#406)
* feat(tensorstore): expose recheck_cached_data on TensorStoreConfig
Add ``recheck_cached_data`` to ``TensorStoreConfig`` and forward it into
``ts.open`` in ``TensorStoreImplementation.open_array``. The option controls
whether cached chunk data is revalidated on every read (the TensorStore
driver default) or only at open time (``"open"``), which is the recommended
setting for long-running read-heavy workloads on networked filesystems
(NFS/VAST) where revalidation costs one stat/GETATTR per chunk per read.
``None`` (default) preserves existing behaviour by omitting the kwarg so
the TensorStore driver keeps its own default. ``True``, ``False``, and
``"open"`` are forwarded verbatim.
Covered by a parametrized test that monkey-patches ``_ts_open`` to assert
the kwarg reaches TensorStore for each configured value and is absent when
unset.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* delete redudant text
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 40b5f2a commit efff544
2 files changed
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
| |||
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
| 65 | + | |
46 | 66 | | |
47 | 67 | | |
48 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
0 commit comments