Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zarr not cleaning up after MetadataError #490

Open
ivirshup opened this issue Oct 23, 2019 · 0 comments
Open

Zarr not cleaning up after MetadataError #490

ivirshup opened this issue Oct 23, 2019 · 0 comments

Comments

@ivirshup
Copy link

Minimal, reproducible code sample, a copy-pastable example if possible

import zarr

z = zarr.open("tmp.zarr")
z.create_dataset(
    "throws_error",
    data=["a", "b", "c"],
    dtype=[("a", object), ("b", object)]
)  # Throws an error
assert "throws_error" in z  # The key is set
z["throws_error"]  # Access throws an error

Problem description

For certain failures to write an array, zarr isn't cleaning up after itself. I expected that there wouldn't be an entry for the key if setting the value failed.

Version and installation information

  • zarr v2.3.2
  • numcodecs v0.6.3
  • python v3.7.4
  • On a mac
  • With pip installed zarr and numcodecs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant