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

   ## What changes were proposed in this pull request?
   Fix typo and remove redundant list copy in NodeDecommissionManager.
   
   1: Fixed a typo in the InvalidHostStringException message in 
NodeDecommissionManager ("value hostname" → "valid hostname").
   2. Simplified checkIfMaintenancePossible() to use `new ArrayList<>(dns)` 
instead of the redundant `stream().collect(Collectors.toList())` + 
`Collections.copy(...)`
   Which is matching with other implementations like 
checkIfDecommissionPossible()
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-16385
   
   ## How was this patch tested?
   No behaviour changes, Ran existing unit tests in TestNodeDecommissionManager
   Successful CI Build : 
https://github.com/navinko/ozone/actions/runs/33965658546


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