[ 
https://issues.apache.org/jira/browse/MESOS-8913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16475762#comment-16475762
 ] 

Benjamin Bannier commented on MESOS-8913:
-----------------------------------------

We do not directly open these files on our own, but interact with leveldb which 
performs the I/O. This issue is a combination of how internally leveldb always 
opens files without {{O_CLOEXEC}} and how we {{fork}} executors.

While it would be possible to patch the bundled leveldb, users might also use 
an unbundled (system) leveldb installation which we have no control over, so it 
appears as if the only reliable fix would be to explicitly {{close}} file 
descriptors when we e.g., launch executors. I created MESOS-8917 to track such 
work.

> Resource provider manager registry leaks file descriptors into executors.
> -------------------------------------------------------------------------
>
>                 Key: MESOS-8913
>                 URL: https://issues.apache.org/jira/browse/MESOS-8913
>             Project: Mesos
>          Issue Type: Bug
>          Components: agent, security, storage
>    Affects Versions: 1.6.0
>            Reporter: James Peach
>            Assignee: Benjamin Bannier
>            Priority: Major
>
> I have an executor that closes unknown file descriptors when it starts up:
> {noformat}
> 2018/05/14 20:54:43.210293 util_linux.go:65: closing extraneous fd 126 
> (/srv/mesos/work/meta/slaves/30d57187-99b4-4e63-aba8-f425a80a6702-S8/resource_provider_registry/000008.log)
> 2018/05/14 20:54:43.210345 util_linux.go:47: unable to call fcntl() to get fd 
> options for fd 3: errno bad file descriptor
> 2018/05/14 20:54:43.210385 util_linux.go:65: closing extraneous fd 321 
> (/srv/mesos/work/meta/slaves/30d57187-99b4-4e63-aba8-f425a80a6702-S8/resource_provider_registry/LOG)
> 2018/05/14 20:54:43.210438 util_linux.go:65: closing extraneous fd 322 
> (/srv/mesos/work/meta/slaves/30d57187-99b4-4e63-aba8-f425a80a6702-S8/resource_provider_registry/LOCK)
> 2018/05/14 20:54:43.210501 util_linux.go:65: closing extraneous fd 324 
> (/srv/mesos/work/meta/slaves/30d57187-99b4-4e63-aba8-f425a80a6702-S8/resource_provider_registry/MANIFEST-000006)
> {noformat}
> It is closing leveldb descriptors leaked by the resource provider manager 
> registry in the agent.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to