dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
538 stars 29 forks source link

zfs-compliant commit metadata #624

Open Godley opened 5 years ago

Godley commented 5 years ago

User requirement

As a dotmesh user, I want to know if my commit data is valid so that I don't have to understand weird errors during snapshotting.

If you give dotmesh an RPC call to Commit and pass it keys which contain invalid zfs values, like Uppercase, % etc, it will fail with the error "failed-snapshotting" and something about "cannot modify this value" which is zfs for "I don't like those characters in that key you gave me".

We should fix this by:

The former should be enough to avoid strange errors in future, the latter should mean users don't need to care what zfs wants