-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Change the error handling for invalid property values during receive #10631
Conversation
5194888
to
aab3ae1
Compare
aab3ae1
to
b21aa5c
Compare
Codecov Report
@@ Coverage Diff @@
## master #10631 +/- ##
==========================================
+ Coverage 79.55% 79.97% +0.42%
==========================================
Files 394 394
Lines 124631 124637 +6
==========================================
+ Hits 99146 99679 +533
+ Misses 25485 24958 -527
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
95ad0e5
to
2d76775
Compare
Updated pyzfs tests to handle the new error code. They will still fail until #10649 is merged |
#10649 has been merged. Would you mind rebasing this on the latest so we can get a fresh test run. |
ZFS recv should return a useful error message when an invalid index property value is provided in the send stream properties nvlist With a compression= property outside of the understood range: Before: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 internal error: Invalid argument Aborted (core dumped) ``` Note: the recv completes successfully, the abort() is likely just to make it easier to track the unexpected error code. After: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 cannot receive compression property on testpool/recv: invalid property value received 28.9M stream in 1 seconds (28.9M/sec) ``` Signed-off-by: Allan Jude <allan@klarasystems.com>
2d76775
to
e0bd009
Compare
ZFS recv should return a useful error message when an invalid index property value is provided in the send stream properties nvlist With a compression= property outside of the understood range: Before: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 internal error: Invalid argument Aborted (core dumped) ``` Note: the recv completes successfully, the abort() is likely just to make it easier to track the unexpected error code. After: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 cannot receive compression property on testpool/recv: invalid property value received 28.9M stream in 1 seconds (28.9M/sec) ``` Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Allan Jude <allan@klarasystems.com> Closes openzfs#10631
ZFS recv should return a useful error message when an invalid index property value is provided in the send stream properties nvlist With a compression= property outside of the understood range: Before: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 internal error: Invalid argument Aborted (core dumped) ``` Note: the recv completes successfully, the abort() is likely just to make it easier to track the unexpected error code. After: ``` receiving full stream of zof/zstd_send@send2 into testpool/recv@send2 cannot receive compression property on testpool/recv: invalid property value received 28.9M stream in 1 seconds (28.9M/sec) ``` Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Allan Jude <allan@klarasystems.com> Closes openzfs#10631
Signed-off-by: Allan Jude allan@klarasystems.com
Motivation and Context
zfs recv
should return a useful error message when an invalid indexproperty value is provided in the send stream properties nvlist
Description
With a compression= property outside of the understood range:
Before:
Note: the recv completes successfully, the abort() is likely just to
make it easier to track the unexpected error code.
After:
How Has This Been Tested?
zfs send from a system with ZSTD support, to a system without ZSTD support
Types of changes
Checklist:
Signed-off-by
.