[ 
https://issues.apache.org/jira/browse/HADOOP-9380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sanjay Radia updated HADOOP-9380:
---------------------------------

    Attachment: HADOOP-9380-4.patch

Updated patch
* Assert changed to exception (thanks for catching that Luke)
* In case of version mismatch, based on version send the appropriate response:
** with total len and exception class + err msg in response header (current 
version)
** without total len and exception class + err msg as separate data (old 
version)

Note: 
* setUpResponse is used for other errors and hence it does serialize with total 
length.
* Note that SASL connection setup still has its own response format. This is 
not tied to the RPC response. We may want to also change these to use ProtoBuf 
if we like (a separate jira).

                
> Add totalLength to rpc response
> -------------------------------
>
>                 Key: HADOOP-9380
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9380
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Sanjay Radia
>            Assignee: Sanjay Radia
>         Attachments: HADOOP-9380-2.patch, HADOOP-9380-4.patch, 
> HADOOP-9380.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to