sodonnel commented on pull request #2190:
URL: https://github.com/apache/ozone/pull/2190#issuecomment-828360237


   @GlenGeng 
   
   > I wonder which situation is this fixed applied for ?
   
   The fix is for the case where someone decommissions / puts to maintenance an 
already dead node. In that case, we cannot do it gracefully, and the node will 
already be handled as dead in SCM. Therefore we treat it as a no-op and moved 
it directly to the end state. There is no point in adding it to the monitor and 
tracking it there. This also follows what HDFS does in the same scenario.
   
   Glen also mentioned on slack:
   
   > What if there is an expiry time attached to the maintenance command. If we 
don't track the node in the monitor, then how can we expire maintenance?
   
   This is somewhat of an edge case. However the solution (as already 
implemented in the code) is to set the maintenance end time as 0 (no end time). 
Then the only way to get the node back to IN_SERVICE is to recommission it, 
which is the same as for the decommissioned node.


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

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