hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-78) rpc commands not buffered
Date Mon, 13 Mar 2006 22:55:27 GMT
     [ http://issues.apache.org/jira/browse/HADOOP-78?page=all ]

Owen O'Malley updated HADOOP-78:
--------------------------------

    Attachment: rpc-buffer.patch

The problem is that the Connection object was doing:

out = new BufferedOutputStream(new FilteredOutputStream(sock.getOutputStream()) { 
// definition of write(byte[], int offset, int length)
});

The problem is that the write definition called super.write(byte[], int, int), which did a
loop calling write(byte) for each byte. So I changed the definition to call out.write(byte[],
int,int), which will send the array in a single call.

> rpc commands not buffered
> -------------------------
>
>          Key: HADOOP-78
>          URL: http://issues.apache.org/jira/browse/HADOOP-78
>      Project: Hadoop
>         Type: Bug
>   Components: ipc
>     Versions: 0.1
>     Reporter: Owen O'Malley
>     Assignee: Owen O'Malley
>      Fix For: 0.1
>  Attachments: rpc-buffer.patch
>
> Calls using Hadoop's RPC framework get sent across the network byte by byte.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message