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
539 stars 29 forks source link

Fix unable to receive X@dotmesh-fastdiff: destination already exists #703

Closed lukemarsden closed 5 years ago

lukemarsden commented 5 years ago

the temporary snaps we create when doing fastdiff can accidentally end up being sent around, and when two of them get caught, there's a name collision because you can't have two snaps with the same name in zfs - fix this by deleting the snaps before we send the filesystem anywhere, and in the intra-cluster case where we can't do that because receiving is async there, at least cleaning them up after we receive a filesystem.