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

Attila Doroszlai updated HDDS-9675:
-----------------------------------
    Description: Currently {{SCMBlockProtocolServer#sortDatanodes}} has to 
create a new list just to cast all items (defined as {{Node}}) to 
{{DatanodeDetails}} (which implements {{Node}}).  This is necessary because 
{{NetworkTopology}} defines its return type too loosely.  We can fix that by 
using method-local type definition.

> Eliminate unnecessary stream in SCMBlockProtocolServer#sortDatanodes
> --------------------------------------------------------------------
>
>                 Key: HDDS-9675
>                 URL: https://issues.apache.org/jira/browse/HDDS-9675
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: SCM
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> Currently {{SCMBlockProtocolServer#sortDatanodes}} has to create a new list 
> just to cast all items (defined as {{Node}}) to {{DatanodeDetails}} (which 
> implements {{Node}}).  This is necessary because {{NetworkTopology}} defines 
> its return type too loosely.  We can fix that by using method-local type 
> definition.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to