[ 
https://issues.apache.org/jira/browse/HBASE-18081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16017306#comment-16017306
 ] 

Anoop Sam John commented on HBASE-18081:
----------------------------------------

The code assumption is that when preamble bytes read, the next 2 bytes are 
avail in the socket and it tries to read that in one shot and process.  Either 
we have to have a waiting loop here to complete the preamble read and process. 
Ya the 4 bytes preamble is read but we miss next 2 bytes as expected.  What if 
preamble bytes itself comes with a halt in btw,  May be how the data part been 
read (even in multiple reads it comes in) way is needed for the preamble 
processing also?

> The way we process connection preamble in SimpleRpcServer is broken
> -------------------------------------------------------------------
>
>                 Key: HBASE-18081
>                 URL: https://issues.apache.org/jira/browse/HBASE-18081
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Duo Zhang
>         Attachments: HBASE-18081-testcase.patch
>
>
> Though very rare, but if the preamble is not sent at once, the logic will be 
> broken.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to