[ 
https://issues.apache.org/jira/browse/RATIS-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated RATIS-1602:
------------------------------
    Description: 
-It is better to have DataStreamRequestByteBuf implementing 
UncheckedAutoCloseable. Then, we can use try-with-resources to release ByteBuf 
inside DataStreamRequestByteBuf.-

There is a List<Proxies> in NettyServerStreamRpc.  It is better to refactor the 
code to a new ProxiesPool inner class.

 

  was:It is better to have DataStreamRequestByteBuf implementing 
UncheckedAutoCloseable.  Then, we can use try-with-resources to release ByteBuf 
inside DataStreamRequestByteBuf.

       Priority: Minor  (was: Major)
        Summary: Add a ProxiesPool inner class in NettyServerStreamRpc.  (was: 
Use try-with-resources to release DataStreamRequestByteBuf)

> Add a ProxiesPool inner class in NettyServerStreamRpc.
> ------------------------------------------------------
>
>                 Key: RATIS-1602
>                 URL: https://issues.apache.org/jira/browse/RATIS-1602
>             Project: Ratis
>          Issue Type: Sub-task
>          Components: server, Streaming
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> -It is better to have DataStreamRequestByteBuf implementing 
> UncheckedAutoCloseable. Then, we can use try-with-resources to release 
> ByteBuf inside DataStreamRequestByteBuf.-
> There is a List<Proxies> in NettyServerStreamRpc.  It is better to refactor 
> the code to a new ProxiesPool inner class.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to