Skip to content
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

remove sanity check in replacement test #4516

Closed
wants to merge 1 commit into from

Conversation

jxiong
Copy link
Contributor

@jxiong jxiong commented Apr 12, 2016

In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong [email protected]

In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong <[email protected]>
@behlendorf
Copy link
Contributor

What about moving the check before the sleep instead to at least verify the process was created. Or is truncate so fast that is still racy?

@jxiong
Copy link
Contributor Author

jxiong commented Apr 12, 2016

@behlendorf Yes, I would think it's not safe to do so.

@behlendorf
Copy link
Contributor

Indeed, OK assuming everything passes this LGTM.

ryao pushed a commit to ClusterHQ/zfs that referenced this pull request Jun 7, 2016
In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#4516
nedbass pushed a commit to nedbass/zfs that referenced this pull request Sep 3, 2016
In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#4516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants