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

   ## What changes were proposed in this pull request?
   
   Fix NPE in `validateContainerPlacement` which can happen when trying to get 
placement group for dead node.
   
   Strictly speaking the fix is only this part:
   
   ```
   -            .collect(Collectors.groupingBy(this::getPlacementGroup,
   +        .map(this::getPlacementGroup)
   +        .filter(Objects::nonNull)
   +        .collect(Collectors.groupingBy(
   +            Function.identity(),
   ```
   
   https://issues.apache.org/jira/browse/HDDS-8950
   
   ## How was this patch tested?
   
   Added unit test.
   
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/5400935177


-- 
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