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

Tsz-wo Sze commented on RATIS-1115:
-----------------------------------

Why byteWritten would be mismatched? Is there a valid case that it happens? If 
a server has problem (disk error or something else), it should return an error.

Could we have the following? When a reply is success, the byteWritten must be 
the same as the dataLength. In other words, byteWritten mismatched only happens 
for an un-success reply.

> NettyServerStreamRpc should handle duplicate headers
> ----------------------------------------------------
>
>                 Key: RATIS-1115
>                 URL: https://issues.apache.org/jira/browse/RATIS-1115
>             Project: Ratis
>          Issue Type: Sub-task
>            Reporter: Rui Wang
>            Assignee: Rui Wang
>            Priority: Major
>
> Current server does 
>  
> {code:java}
> if (Header) {    
>   streams.computeIfAbsent(request.getStreamId(), id ->createStream());
>   ...  
> }
> {code}
>  
>  
> It is possible that clients send multiple headers so the entry already 
> exists. We might choose to send a reply with error message without accepting 
> duplicated headers. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to