-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix incorrect error message for raw receive #8863
Conversation
This patch fixes an incorrect error message that comes up when doing a non-forcing, raw, incremental receive into a dataset that has a newer snapshot than the "from" snapshot. In this case, the current code prints a confusing message about an IVset guid mismatch. This functionality is supported by non-raw receives as an undocumented feature, but was never supported by the raw receive code. If this is desired in the future, we can probably figure out a way to make it work. Signed-off-by: Tom Caputi <tcaputi@datto.com>
does that mean that it will never work that way again? |
Codecov Report
@@ Coverage Diff @@
## master #8863 +/- ##
==========================================
+ Coverage 78.68% 78.87% +0.19%
==========================================
Files 382 382
Lines 117771 117774 +3
==========================================
+ Hits 92672 92900 +228
+ Misses 25099 24874 -225
Continue to review full report at Codecov.
|
We can probably make this work at some point in the future if we want. Doing that will require more investigation though and we've decided not to prioritize it at the moment. The fix here is easy to reason about and (at least) communicates to the end user how they can solve the problem. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Verified that with this change the updated error message is now:
cannot receive incremental stream: destination tank/fs has been modified
since most recent snapshot
This patch fixes an incorrect error message that comes up when doing a non-forcing, raw, incremental receive into a dataset that has a newer snapshot than the "from" snapshot. In this case, the current code prints a confusing message about an IVset guid mismatch. This functionality is supported by non-raw receives as an undocumented feature, but was never supported by the raw receive code. If this is desired in the future, we can probably figure out a way to make it work. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Tom Caputi <tcaputi@datto.com> Issue #8758 Closes #8863
This patch fixes an incorrect error message that comes up when
doing a non-forcing, raw, incremental receive into a dataset
that has a newer snapshot than the "from" snapshot. In this
case, the current code prints a confusing message about an IVset
guid mismatch.
This functionality is supported by non-raw receives as an
undocumented feature, but was never supported by the raw receive
code. If this is desired in the future, we can probably figure
out a way to make it work.
Signed-off-by: Tom Caputi tcaputi@datto.com
Motivation and Context
#8758
We decided that it would be more difficult than it is worth to make this feature work for raw sends. This code simply makes the error message consistent.
Types of changes
Checklist:
Signed-off-by
.