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

ASF GitHub Bot updated HDDS-17381:
----------------------------------
    Labels: pull-request-available  (was: )

> SCM placement validation creates unnecessary temporary objects
> --------------------------------------------------------------
>
>                 Key: HDDS-17381
>                 URL: https://issues.apache.org/jira/browse/HDDS-17381
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Shuo Huang
>            Assignee: Shuo Huang
>            Priority: Major
>              Labels: pull-request-available
>
> SCMCommonPlacementPolicy#validateContainerPlacement uses groupingBy and 
> reducing to count replicas on each rack.
>  
> Replication Manager performs this check repeatedly while checking container 
> health.
> The replica list is usually small, but the stream collectors create temporary 
> objects on every call, adding avoidable allocation and GC overhead in SCM.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to