Open wjones127 opened 5 months ago
Two things:
We have a whole test here:
I'm not sure then why this would happen. It must be on AWS lambda then somehow. Maybe I can write a simple script to repro and run on there.
I believe the Exception was raised inside the yield:
@contextlib.contextmanager
def commit_lock(_version: int):
try:
raise Exception("hello world!")
finally:
pass
with pytest.raises(Exception, match="hello world!"):
lance.write_dataset(
pa.table({"a": range(100)}), tmp_path / "test2", commit_lock=commit_lock
)
When a commit conflict happens, sometimes users just get this message instead:
This is failing the import at
https://github.com/lancedb/lance/blob/06a6a09561493b550954a3ed99cdf2dc551bd748/python/src/dataset/commit.rs#L27-L30