Montura opened a new pull request, #6303:
URL: https://github.com/apache/ozone/pull/6303

   There is a base class 
[`org.apache.hadoop.hdds.scm.node.states.Node2ObjectsMap`](https://github.com/apache/ozone/blob/master/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/states/Node2ObjectsMap.java#L40)
 for 
[`Node2PipelineMap`](https://github.com/apache/ozone/blob/master/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/states/Node2PipelineMap.java#L37)
 and 
[`Node2ContainerMap`](https://github.com/apache/ozone/blob/master/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/states/Node2ContainerMap.java#L37).
   
   It is redundant because of:
   1. `Node2ContainerMap` is used only in tests
   2. `Node2PipelineMap` doesn't  need inheritance at all
   
   ## What changes were proposed in this pull request?
   1. Remove `org.apache.hadoop.hdds.scm.node.states.Node2ObjectsMap` class
   2. Move `Node2ContainerMap` to tests
   3. Don't use `synchronized` for `Node2PipelineMap::addPipeline` and 
`Node2PipelineMap::removePipeline`
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-10446
   
   ## How was this patch tested?
   
   Use standalone tests
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to