VarshaRaviCV commented on PR #7155: URL: https://github.com/apache/ozone/pull/7155#issuecomment-2352590780
@errose28 If the node is in decommissioning state or is already decommissioned, the logs will show the below error message. > 2024-09-16 16:17:39 2024-09-16 10:47:39,592 [IPC Server handler 6 on default port 9860] INFO node.NodeDecommissionManager: Force flag = false. Checking if decommission is possible for dns: [7b15ac8b-b11d-4235-a5cd-494f649b0553(ozone-datanode-1.ozone_default/172.18.0.8)] 2024-09-16 16:17:39 2024-09-16 10:47:39,592 [IPC Server handler 6 on default port 9860] WARN node.NodeDecommissionManager: Cannot decommission ozone-datanode-1.ozone_default because it is not IN-SERVICE 2024-09-16 16:17:39 2024-09-16 10:47:39,592 [IPC Server handler 6 on default port 9860] INFO node.NodeDecommissionManager: Start Decommission called on node 7b15ac8b-b11d-4235-a5cd-494f649b0553(ozone-datanode-1.ozone_default/172.18.0.8) in state DECOMMISSIONING. Nothing to do. > 2024-09-16 16:18:19 2024-09-16 10:48:19,993 [IPC Server handler 9 on default port 9860] INFO node.NodeDecommissionManager: Force flag = false. Checking if decommission is possible for dns: [d067994d-ee5f-4735-912d-5a7b93121ac0(ozone-datanode-3.ozone_default/172.18.0.9)] 2024-09-16 16:18:19 2024-09-16 10:48:19,993 [IPC Server handler 9 on default port 9860] WARN node.NodeDecommissionManager: Cannot decommission ozone-datanode-3.ozone_default because it is not IN-SERVICE 2024-09-16 16:18:19 2024-09-16 10:48:19,993 [IPC Server handler 9 on default port 9860] INFO node.NodeDecommissionManager: Start Decommission called on node d067994d-ee5f-4735-912d-5a7b93121ac0(ozone-datanode-3.ozone_default/172.18.0.9) in state DECOMMISSIONED. Nothing to do. The CLI however will not show any error. > sh-4.4$ ozone admin datanode decommission ozone-datanode-1 Started decommissioning datanode(s): ozone-datanode-1 > sh-4.4$ ozone admin datanode decommission ozone-datanode-3 Started decommissioning datanode(s): ozone-datanode-3 I will add validation of node count in error message in the existing tests for insufficient nodes. -- 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]
