-
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
Test cancelling a removal in ZTS #9101
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This patch adds a new test that sanity checks cancelling a removal. Signed-off-by: Serapheim Dimitropoulos <[email protected]>
ahrens
approved these changes
Jul 30, 2019
behlendorf
approved these changes
Jul 30, 2019
Codecov Report
@@ Coverage Diff @@
## master #9101 +/- ##
=========================================
- Coverage 79.32% 79.03% -0.3%
=========================================
Files 400 400
Lines 121640 121640
=========================================
- Hits 96493 96139 -354
- Misses 25147 25501 +354
Continue to review full report at Codecov.
|
jwk404
approved these changes
Jul 31, 2019
sdimitro
added
Status: Accepted
Ready to integrate (reviewed, tested)
and removed
Status: Code Review Needed
Ready for review and testing
labels
Jul 31, 2019
allanjude
pushed a commit
to allanjude/zfs
that referenced
this pull request
Aug 12, 2019
This patch adds a new test that sanity checks cancelling a removal. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes openzfs#9101
allanjude
pushed a commit
to allanjude/zfs
that referenced
this pull request
Oct 13, 2019
This patch adds a new test that sanity checks cancelling a removal. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes openzfs#9101
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this pull request
Dec 24, 2019
This patch adds a new test that sanity checks cancelling a removal. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes openzfs#9101 Conflicts: tests/zfs-tests/tests/functional/removal/Makefile.am
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this pull request
Dec 27, 2019
This patch adds a new test that sanity checks cancelling a removal. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes openzfs#9101 Conflicts: tests/zfs-tests/tests/functional/removal/Makefile.am
tonyhutter
pushed a commit
that referenced
this pull request
Jan 23, 2020
This patch adds a new test that sanity checks cancelling a removal. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Serapheim Dimitropoulos <[email protected]> Closes #9101 Conflicts: tests/zfs-tests/tests/functional/removal/Makefile.am
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch adds a new test that sanity checks cancelling a removal.
Signed-off-by: Serapheim Dimitropoulos [email protected]
Description
A variation of this test has existed in DelphixOS for a while. It has helped detect bugs where there are faults in operations like forgetting to walk the
ms_freeing
or thems_unflushed_frees
trees fromsvr_allocd_segs
when cancelling a removal. The variation that we had in DelphixOS was that instead of havingzfs_removal_suspend_progress
that just suspends removals right away (without potentially having done any copy whatsoever and thus havingsvr_allocd_segs
empty to begin with) we hadzfs_remove_max_bytes_pause
which would pause removals AFTER having copied some data away from the removed device.zfs_removal_suspend_progress
(ZoL) andzfs_remove_max_bytes_pause
(DelphixOS) are in the same exact places in the source which makes me think that when upstreaming device removal to ZoL, people preferred the former over the latter. In any case, in order to "emulate"(/hack our way)zfs_remove_max_bytes_pause
, we try to do enough writes in the device to be removed, so once the removal is issued we sleep for 1 second and then raisezfs_removal_suspend_progress
to stop the removal mid-way.Types of changes
Checklist:
Signed-off-by
.