[
https://issues.apache.org/jira/browse/MESOS-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609750#comment-13609750
]
Benjamin Mahler commented on MESOS-404:
---------------------------------------
The issue lies in os:ls, something is opening too many files:
inline std::list<std::string> ls(const std::string& directory)
{
std::list<std::string> result;
DIR* dir = opendir(directory.c_str());
if (dir == NULL) {
std::cerr << "Bail 1: " << strerror(errno) << std::endl;
return std::list<std::string>();
}
>From my test:
Bail 1: Too many open files
> FilesTest.BrowseTest is flaky
> -----------------------------
>
> Key: MESOS-404
> URL: https://issues.apache.org/jira/browse/MESOS-404
> Project: Mesos
> Issue Type: Bug
> Reporter: Vinod Kone
> Assignee: Benjamin Mahler
>
> [ RUN ] FilesTest.BrowseTest
> Using temporary directory '/tmp/FilesTest_BrowseTest_W8gtHm'
> I0319 11:14:53.152817 308355072 process.cpp:2931] Handling HTTP event for
> process 'files' with path: '/files/browse.json'
> I0319 11:14:53.153826 310501376 process.cpp:878] Socket closed while receiving
> ../../src/tests/files_tests.cpp:243: Failure
> Value of: (response).get().body
> Actual: "[]"
> Expected: stringify(expected)
> Which is:
> "[{\"gid\":\"wheel\",\"mode\":\"drwxr-xr-x\",\"mtime\":1363716893,\"nlink\":2,\"path\":\"one\\/2\",\"size\":68,\"uid\":\"vinod\"},{\"gid\":\"wheel\",\"mode\":\"drwxr-xr-x\",\"mtime\":1363716893,\"nlink\":2,\"path\":\"one\\/3\",\"size\":68,\"uid\":\"vinod\"},{\"gid\":\"wheel\",\"mode\":\"-rw-r--r-x\",\"mtime\":1363716893,\"nlink\":1,\"path\":\"one\\/three\",\"size\":5,\"uid\":\"vinod\"},{\"gid\":\"wheel\",\"mode\":\"-rw-r--r-x\",\"mtime\":1363716893,\"nlink\":1,\"path\":\"one\\/two\",\"size\":3,\"uid\":\"vinod\"}]"
> [1] 34224 segmentation fault GLOG_v=1 ./bin/mesos-tests.sh --verbose
> --gtest_repeat=20
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira