You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2021/11/29 10:28:45 UTC

[GitHub] [ratis] guohao-rosicky edited a comment on pull request #541: RATIS-1445. NettyClientStreamRpc exception handling

guohao-rosicky edited a comment on pull request #541:
URL: https://github.com/apache/ratis/pull/541#issuecomment-979709395


   org.apache.ratis.netty.client.NettyClientStreamRpc#replies
   ```
   private final ConcurrentMap<ClientInvocationId, Queue<CompletableFuture<DataStreamReply>>> replies =
         new ConcurrentHashMap<>();
   ```
   When all data for a streamID has been sent, is it necessary to clear the queue from the map?
   @szetszwo 
   
   
   I would implement a ExpiringMap. If you don't use it for a long time or Queue.size is 0, I delete it from the Map.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org