-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix PortSysinfoTest failure when running as root #6513
Conversation
@babsingh fyi |
Same OSX failures, as seen in #6494 (comment), occur in this PR:
Opened #6516 to document the above failures. |
jenkins build all |
I found two Linux man pages for
This doc does not mention the above statement, but it mentions the below statement to support the current changes:
Which man page applies to us?
Is the above statement also valid for other Unix systems: mac, AIX and zOS? |
I don't think this should apply, it makes no sense to be able to raise the soft limit above the hard limit. Also I can't find this statement in any other documentation. In the same page:
Zos:
|
187c081
to
feb26c9
Compare
feb26c9
to
983344f
Compare
jenkins build all |
jenkins build zos |
This test resets the soft limit again at the end, claiming it may have been lowered implicitly to stay within the hard limit:
Is that possible? (Or was it ever?) It doesn't seem to be consistent with the behaviour we now expect with this change The root path will now explicitly lower the soft limit though, so I guess it still needs to be restored in that case |
Not sure about that comment. I don't think the soft limit is automatically lowered with the hard limit since |
OK, then I think it would be good to move the restoration into the root path, fix the comment, eliminate |
PortSysinfoTest.sysinfo_test_sysinfo_set_limit_FILE_DESCRIPTORS fails when running as root. Make sure setrlimit does not lower the hard limit below the soft limit as this is not allowed, even as root. Signed-off-by: Eric Yang <eric.yang@ibm.com>
983344f
to
3040bff
Compare
Great, thank you! Can I bother you for one last thing? The last two lines of the test aren't indented as far as the rest of it. Judging based on the rest of the file, it seems that the bulk of the test has been indented an extra level for some reason. Would you mind unindenting it in a separate commit? |
Signed-off-by: Eric Yang <eric.yang@ibm.com>
Done |
Jenkins build all |
Jenkins build win |
PortSysinfoTest.sysinfo_test_sysinfo_set_limit_FILE_DESCRIPTORS fails
when running as root. Make sure setrlimit does not lower the hard limit
below the soft limit as this is not allowed, even as root.
Signed-off-by: Eric Yang eric.yang@ibm.com