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

Skip NFS files in fd leak test and fix grammar in failure message #7

Merged
merged 1 commit into from May 10, 2016

Conversation

timj
Copy link
Member

@timj timj commented May 5, 2016

No description provided.

@@ -124,13 +125,14 @@ def testFileDescriptorLeaks(self):
now_open = _get_open_files()

# Some files are opened out of the control of the stack.
now_open = set(f for f in now_open if not f.endswith(".car"))
now_open = set(f for f in now_open
if not f.endswith(".car") and ".nfs" not in f)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought .nfs files were left behind when a process has a file open on a network filesystem and that file is removed (unlinked) from its directory. These files are supposed to be cleaned up after the file is closed. If so, doesn't the presence of a .nfs file attached to an open file descriptor indicate that there really is an open file that shouldn't be?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Over the years I've had weirdness relating to NFS that relate to issues where it takes a relatively large amount of time for NFS resources to get freed. Given that the tests all work fine on local disk without any file leakage I am inclined to put this down to NFS race conditions and keep the code in there.

@timj timj merged commit 8cff241 into master May 10, 2016
@ktlim ktlim deleted the tickets/DM-5979 branch August 25, 2018 05:57
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.

None yet

2 participants