Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 54644 invoked from network); 11 Mar 2011 20:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 20:35:23 -0000 Received: (qmail 60269 invoked by uid 500); 11 Mar 2011 20:35:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 60241 invoked by uid 500); 11 Mar 2011 20:35:23 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 60233 invoked by uid 99); 11 Mar 2011 20:35:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 20:35:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 20:35:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 832673A493E for ; Fri, 11 Mar 2011 20:34:59 +0000 (UTC) Date: Fri, 11 Mar 2011 20:34:59 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: <1053435506.14288.1299875699534.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1492489774.2864.1298927317616.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (HBASE-3581) hbase rpc should send size of response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-3581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell updated HBASE-3581: ---------------------------------- Status: Open (was: Patch Available) Cancelling patch. Seems there is more work to do? > hbase rpc should send size of response > -------------------------------------- > > Key: HBASE-3581 > URL: https://issues.apache.org/jira/browse/HBASE-3581 > Project: HBase > Issue Type: Improvement > Reporter: ryan rawson > Assignee: ryan rawson > Fix For: 0.92.0 > > Attachments: HBASE-rpc-response.txt > > > The RPC reply from Server->Client does not include the size of the payload, it is framed like so: > callId > errorFlag > data > The data segment would contain enough info about how big the response is so that it could be decoded by a writable reader. > This makes it difficult to write buffering clients, who might read the entire 'data' then pass it to a decoder. While less memory efficient, if you want to easily write block read clients (eg: nio) it would be necessary to send the size along so that the client could snarf into a local buf. > The new proposal is: > callId > size > errorFlag > data > the size being sizeof(data) + sizeof(errorFlag). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira