siddhantsangwan commented on PR #3485: URL: https://github.com/apache/ozone/pull/3485#issuecomment-1150722855
> can we use `Map<DatanodeDetails, List<ContainerMoveSelection>>` or something similar to map one source datanode to multiple target and container? @JacksonYao287 We could use that too. I had considered `Map<DatanodeDetails, Set<ContainerMoveSelection>>` to make searching for a particular container quicker. We'd have to define `equals()` and `hashCode()` for `ContainerMoveSelection` to make it work. I decided to use `ContainerID` as the key instead because it seems simpler to understand and implement. -- 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]
