hanishakoneru commented on a change in pull request #2886:
URL: https://github.com/apache/ozone/pull/2886#discussion_r766906367
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocol/OMConfiguration.java
##########
@@ -84,9 +84,21 @@ public OMConfiguration build() {
* the new conf under current serviceId.
*/
public Map<String, OMNodeDetails> getOmNodesInNewConf() {
- return omNodesInNewConf.stream().collect(Collectors.toMap(
- NodeDetails::getNodeId,
- omNodeDetails -> omNodeDetails,
- (nodeId, omNodeDetails) -> omNodeDetails));
+ return omNodesInNewConf.stream()
Review comment:
omNodesInNewConf include the decommissioned nodes. But we want only
active nodes from getOmNodesInNewConf().
I will update the function name and JavaDoc to clarify.
--
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]