smitajoshi12 commented on PR #6411:
URL: https://github.com/apache/ozone/pull/6411#issuecomment-2176531921

   > @smitajoshi12 If DN operational state is `DECOMMISSIONED` or Node Status 
is `DEAD`, then only we allow, We are also **`NOT`** allowing IN_MAINTENANCE 
node to be removed. And if a node operational state is `DECOMMISSIONED`, it is 
not necessarily to be in `DEAD` status and node status may still be `HEALTHY`, 
so first priority is to check DN operational state should be equal to 
`DECOMMISSIONED`, then in `OR` second condition should be node status as `DEAD`.
   > 
   > cc: @krishnaasawa1
   
   @devmadhuu 
   Disabled removal for Operation State = IN_MAINTENANCE updated JIRA 
description and PR details also.
   
   **State= DEAD    Operation State=[Any State] ==> Allow for explicit removal
   State= [Any]     Operation State=[Decommissioned] ==> Allow for explicit 
removal**
   
   Noticed one issue in datanode api State= [Any]     Operation 
State=[Decommissioned]  removal is happening but some interval of 1 min or 2 
mins I can see DECOMMISSIONED Records again.
   
   
![image](https://github.com/apache/ozone/assets/112169209/b56976b0-4c17-4b7d-8753-e15c2742ef25)
   


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