errose28 commented on PR #3657:
URL: https://github.com/apache/ozone/pull/3657#issuecomment-1215982234

   Hi @Xushaohong, I don't think we want to be deleting containers with all 
replicas unhealthy automatically, because this will cause divergence between 
the OM's metadata and the corresponding block storage. If all container 
replicas are unhealthy, there is no way to recover the containers, and the 
admin would like the containers removed, it would be better for the admin to 
delete the keys with data in those containers. The keys can be found using 
[Recon's REST 
API](https://ozone.apache.org/docs/current/interface/reconapi.html). Here you 
can query an index mapping container ID to keys with blocks in the container 
from the `/api/v1/containers/:id/keys` endpoint. We should double check that 
this code path works though. I am not sure what happens if delete block 
commands get queued for unhealthy containers. If there are bugs in this area we 
should fix them so that deleting all keys with data in an unhealthy container 
causes the unhealthy container to eventually be deleted.


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