You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Jie Yu (JIRA)" <ji...@apache.org> on 2015/11/18 02:09:11 UTC

[jira] [Created] (MESOS-3941) Using 'async' to invoke blocking functions will block work threads.

Jie Yu created MESOS-3941:
-----------------------------

             Summary: Using 'async' to invoke blocking functions will block work threads.
                 Key: MESOS-3941
                 URL: https://issues.apache.org/jira/browse/MESOS-3941
             Project: Mesos
          Issue Type: Bug
            Reporter: Jie Yu


Saw a few occurrences in the code base. For instance:
https://github.com/apache/mesos/blob/master/src/slave/containerizer/fetcher.cpp#L382

The current implementation of 'async' will create a libprocess process. That means if the function is blocking, a worker thread will be blocked. If we have too many such instances, we might end up deadlocking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)