[ https://issues.apache.org/jira/browse/MESOS-1619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14078585#comment-14078585 ]
Benjamin Mahler commented on MESOS-1619: ---------------------------------------- This thread (http://www.redhat.com/archives/libvir-list/2012-December/msg00208.html) seems relevant: {quote} virGetUserIDByName returns an error when the return value of getpwnam_r is non-0. However on my RHEL system, getpwnam_r returns ENOENT when the requested user cannot be found, which then causes virGetUserID not to behave as documented (it returns an error instead of falling back to parsing the passed-in value as an uid). {quote} Let's fix up os.hpp based on this knowledge? > OsTest.User test is flaky > ------------------------- > > Key: MESOS-1619 > URL: https://issues.apache.org/jira/browse/MESOS-1619 > Project: Mesos > Issue Type: Bug > Components: test > Environment: centos7 w/ gcc > Reporter: Vinod Kone > > [ RUN ] OsTest.user > stout/tests/os_tests.cpp:720: Failure > Value of: os::getuid(UUID::random().toString()).isNone() > Actual: false > Expected: true > stout/tests/os_tests.cpp:721: Failure > Value of: os::getgid(UUID::random().toString()).isNone() > Actual: false > Expected: true > WARNING: Logging before InitGoogleLogging() is written to STDERR > E0721 06:15:58.656255 13440 os.hpp:731] Failed to set gid: Failed to get > username information: No such file or directory > [ FAILED ] OsTest.user (20 ms) -- This message was sent by Atlassian JIRA (v6.2#6252)