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

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

bq. a. OrderedStreamAsync can only send one request a time. ...

This is not an option since it becomes not streaming anymore.

bq. b. OrderedStreamAsync allows insert requests in the head of queue. ...

We don't need insertion since the sliding window already can take care 
retrying.  The existing mechanism already can do retry.  We just have to decide 
when to do retry.

> 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