zfs send -R | zfs recv can fail in the middle due to a snapshot being taken #7024
Labels
Bot: Not Stale
Override for the stale bot
Component: Send/Recv
"zfs send/recv" feature
Type: Defect
Incorrect behavior (e.g. crash, hang)
System information
Describe the problem you're observing + how to reproduce the problem
When doing a long-running
zfs send -R foo/bar/baz@ten | zfs recv -ds newfoo
, an automated utility helpfully took a recursive snapshot on newfoo, and zfs recv abruptly died withcannot receive incremental stream: kernel modules must be upgraded to receive this stream.
with newfoo/bar/baz having completed snapshots one, ..., seven and throwing that error on attempting to resume.I would have expected the in-progress receiving dataset(s) to have remained immutable until the receives were completed, but apparently this isn't the case.
Destroying the errant snapshot on newfoo/bar/baz allowed the zfs send to proceed like nothing ever happened.
Since there's already a number of bugs suggesting that this message should be broken out and detailed further (#6547, #6574), this bug is mostly about the fact that nothing is stopping you from shooting yourself in the foot and not being able to discover why without making dramatic leaps or (presumably) reading zfs/dbgmsg.
The text was updated successfully, but these errors were encountered: