Can't write to icechunk store
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start with the provided zarrista_icechunk_write_mre.py reproduction and trace ArrayBuilder.create_async, array.store_array_subset, and session.commit, using the icechunk session.py commit path shown in the traceback. Done means the reproduced write produces a commit rather than SessionStateError and the stored array can be confirmed.
Written by the indexing model from the issue text.
Description
Here's a reproducible example.
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "icechunk>=2",
# "numpy",
# "zarrista==0.1.0",
# ]
# ///
import asyncio
import tempfile
from pathlib import Path
import icechunk
import numpy as np
from zarrista import ArrayBuilder, ChunkGrid, DataType, FillValue
async def main() -> None:
root = Path(tempfile.mkdtemp()) / "repo"
storage = icechunk.local_filesystem_storage(str(root))
session = icechunk.Repository.create(storage).writable_session("main")
data = np.arange(256 * 1024, dtype="int32").reshape(512, 512)
builder = ArrayBuilder(
ChunkGrid.regular(data.shape, chunk_shape=data.shape),
DataType.from_string("int32"),
FillValue(np.zeros((), dtype=data.dtype).tobytes()),
)
array = await builder.create_async(session, "/arr")
await array.store_array_subset(Ellipsis, data)
# following raises icechunk.SessionStateError
session.commit("zarrista write")
asyncio.run(main())
Stacktrace is
Traceback (most recent call last):
File "/Users/tom/workspace/memray-array/examples/zarrista_icechunk_write_mre.py", line 38, in <module>
asyncio.run(main())
~~~~~~~~~~~^^^^^^^^
File "/Users/tom/.local/share/uv/python/cpython-3.14.2-macos-aarch64-none/lib/python3.14/asyncio/runners.py", line 204, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "/Users/tom/.local/share/uv/python/cpython-3.14.2-macos-aarch64-none/lib/python3.14/asyncio/runners.py", line 127, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/Users/tom/.local/share/uv/python/cpython-3.14.2-macos-aarch64-none/lib/python3.14/asyncio/base_events.py", line 719, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "/Users/tom/workspace/memray-array/examples/zarrista_icechunk_write_mre.py", line 36, in main
session.commit("zarrista write")
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/Users/tom/.cache/uv/environments-v2/zarrista-icechunk-write-mre-6d9278fab165d75f/lib/python3.14/site-packages/icechunk/session.py", line 452, in commit
return self._session.commit(
~~~~~~~~~~~~~~~~~~~~^
message,
^^^^^^^^
...<3 lines>...
allow_empty=allow_empty,
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
icechunk.SessionStateError: session error: cannot commit, no changes made to the session (use `allow_empty=true` to commit anyway)
context:
0: icechunk::session::commit_inner
with zarrista write max_concurrent_nodes=1 rewrite_manifests=false commit_method=NewCommit allow_empty=false
at icechunk/src/session.rs:1699
× session error: cannot commit, no changes made to the session (use `allow_empty=true` to commit anyway)
│
│ context:
│ 0: icechunk::session::commit_inner
│ with zarrista write max_concurrent_nodes=1 rewrite_manifests=false commit_method=NewCommit allow_empty=false
│ at icechunk/src/session.rs:1699
│
- Dominant language
- Python
- Stars
- 52
- Forks
- 3
- Avg merge
- 36m
- Merged PRs (30d)
- 5
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/zarrista
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
developmentseed/zarrista#222 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
developmentseed/zarrista#211 · 1 comment ·
-
Bump to arrow 60Open
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
developmentseed/zarrista#203 ·
-
Read and write icechunk sessions through the zarr-python Store instead of linking the icechunk crateOpen
Difficulty 5/5 Over a week Newbie friendliness 35/100
developmentseed/zarrista#196 ·
-
pyemscripten wheel is unimportable: the Python layer imports async-only classes unconditionallyOpen
Difficulty 3/5 1-2 days Newbie friendliness 57/100
developmentseed/zarrista#189 · 3 comments ·
All issues in developmentseed/zarrista
Similar issues
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
app: scripts status: backlog type: housekeeping
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
netbox-community/netbox-scripts#239 ·
Maintainers usually reply within 1 day
-
Lambda deploys fail once the bundle grows by about 254 KBPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
developmentseed/titiler-cmr#341 ·
Maintainers usually reply within 1 day
-
Card tables add "..." to every value in a DataFrame column when any value is longer than 30 charactersPossibly taken @omkarbandikatte claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day