Description
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?
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.
Attachments
Attachments
Issue Links
- links to