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

Benjamin Mahler commented on MESOS-3941:
----------------------------------------

[~tnachen] can you elaborate? The example in this ticket is referring to 
incorrect usage of {{async}}. In particular, we need to eliminate blocking 
functions like {{net::contentLength}} in favor of a non-blocking version.

> 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)

Reply via email to