[
https://issues.apache.org/jira/browse/HADOOP-12957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15264999#comment-15264999
]
Xiaobing Zhou commented on HADOOP-12957:
----------------------------------------
v009 adjust position of releaseAsyncCall in ipc.Client#call, e.g.
{code}
if (isAsynchronousMode()) {
Future<Writable> returnFuture = new AbstractFuture<Writable>() {
private final AtomicBoolean callled = new AtomicBoolean(false);
@Override
public Writable get() throws InterruptedException, ExecutionException {
if (callled.compareAndSet(false, true)) {
try {
set(getRpcResponse(call, connection));
} catch (IOException ie) {
setException(ie);
} finally {
releaseAsyncCall();
}
}
return super.get();
}
};
{code}
> 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, HADOOP-12957.001.patch, HADOOP-12957.002.patch,
> HADOOP-12957.003.patch, HADOOP-12957.004.patch, HADOOP-12957.005.patch,
> HADOOP-12957.006.patch, HADOOP-12957.007.patch, HADOOP-12957.008.patch,
> HADOOP-12957.009.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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]