#4276·lancedb

bug(python): remote BlobFile is not pinned to the table version it was opened at

Author: XuanwoCreated Sep 23, 2026Updated Sep 23, 2026
LabelsbugPythonneeds-design

Problem

A BlobFile from fetch_blob_files on a local table keeps reading the table version it was opened at. On a remote table it does not: every read resolves the latest version, so after a delete or update the handle fails with 400.

python
h_small, h_big = t.fetch_blob_files("payload", row_ids)   # opened at version 2
t.delete("id = 1")
h_small.read()
# local:  b'one-inline'
# remote: RuntimeError: blob read failed: … 400 Bad Request: … blob read for column 'payload'
#         requested 1 row ids but some do not exist in the table …
t.update(where="id = 2", values={"id": 20})
h_big.read_range(0, 4)
# local:  b'AAAA'
# remote: RuntimeError: blob read_range failed: … 400 … some do not exist in the table …

In these tests the result was an error, not wrong bytes. I did not check whether any write path can put different data at the same row address, which would make the handle return wrong bytes silently.

Root cause

fetch_blob_files_impl in rust/lancedb/src/remote/table/blobs.rs stores version: read_snapshot.version on the handle. That is None when the table tracks latest, so each Range GET is resolved against the latest version on the server. The server already returns x-lancedb-version on the size probe, but probe_blob_file ignores it.

Fix direction

Record x-lancedb-version from the probe response and send it as version on every later range request of that handle. No server change is needed.

Environment

lancedb 0.40.0b5; lancedb server release-2026-09-20.39a433410f.verified. Same code on main.

Found during the Blob V2 bug bash (2026-09-23).