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 <serapheim@delphix.com>
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
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 <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com> 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 <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com> 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 <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com> 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 <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com> 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 <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com> 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 serapheim@delphix.com
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_freeingor thems_unflushed_freestrees fromsvr_allocd_segswhen cancelling a removal. The variation that we had in DelphixOS was that instead of havingzfs_removal_suspend_progressthat just suspends removals right away (without potentially having done any copy whatsoever and thus havingsvr_allocd_segsempty to begin with) we hadzfs_remove_max_bytes_pausewhich 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_progressto stop the removal mid-way.Types of changes
Checklist:
Signed-off-by.