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

Tsz Wo Nicholas Sze commented on HADOOP-12957:
----------------------------------------------

Thanks for the patch.  We could simply use 
[Semaphore|http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Semaphore.html]
 instead of adding a new class RateLimiter.

Please also add some tests.

> Limit the number of outstanding async calls
> -------------------------------------------
>
>                 Key: HADOOP-12957
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12957
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: ipc
>            Reporter: Xiaobing Zhou
>            Assignee: Xiaobing Zhou
>         Attachments: HADOOP-12957-HADOOP-12909.000.patch, 
> HADOOP-12957-combo.000.patch
>
>
> In async RPC, if the callers don't read replies fast enough, the buffer 
> storing replies could be used up. This is to propose limiting the number of 
> outstanding async calls to eliminate the issue.



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

Reply via email to