[
https://issues.apache.org/jira/browse/HADOOP-1841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533755
]
Enis Soztutar commented on HADOOP-1841:
---------------------------------------
Hi Dhruba,
I had written a similar architecture having a pseudo-code something like below,
but could not made it pass the tests.
{code}
OutputHandler#run() {
while(running) {
selector.select();
//write data
//register pending calls to selector
}
}
Handler#run() {
//handle the call
//prepare ByteBuffer
//add call to the response queue
selector.wakeup()
}
{code}
now looking at your patch, the reason mine did not work is that i've used
SelectionKeys and ResponseQueues per Call, rather that Connections.
Anyway i'm +1 for this after we justify its necessity.
> IPC server should write repsonses asynchronously
> ------------------------------------------------
>
> Key: HADOOP-1841
> URL: https://issues.apache.org/jira/browse/HADOOP-1841
> Project: Hadoop
> Issue Type: Improvement
> Components: ipc
> Reporter: Doug Cutting
> Assignee: Enis Soztutar
> Attachments: asyncRPC.patch
>
>
> Hadoop's IPC Server currently writes responses from request handler threads
> using blocking writes. Performance and scalability might be improved if
> responses were written asynchronously.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.