Details
Description
BlockDeletingService is a per-datanode container block deleting service takes in charge of the "real" deletion of ozone blocks. It spawns a worker thread per container and delete blocks/chunks from disk as background threads. The number of threads currently is throttled by ozone.block.deleting.container.limit.per.interval, but there is a potential problem. Containers are sorted so it always fetch same of containers, we need to fix this by creating an API in ContainerManagerImpl to get a shuffled list of containers.