Shuo Huang created HDDS-17381:
---------------------------------
Summary: 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
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]