[ https://issues.apache.org/jira/browse/HDFS-12354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16141533#comment-16141533 ]
Yiqun Lin commented on HDFS-12354: ---------------------------------- Thanks for so quick response, Weiwei! The following is the way that I plan to achieve in my mind. # Consider the overloaded of datanode, we can query under deletion blocks info from cache db rather than real db file. # Newly define a interface named {{ChooseContainerForBlockDeletion}} that will specified used for selecting containers for block deletion. In addition, we still keep {{listContainer}} interface. # We'd like to introduced a new strategy that targets to choosing containers for block deletion by different algorithm. Currently we can support two ways: 1.randomly choosing way and 2.pending deletion blocks num based way. By default, the first way will be used. I will start working this next week. [~cheersyang], if you have other comments. Please just let me know. Thanks. > Ozone: Shuffle container list for datanode BlockDeletingService > --------------------------------------------------------------- > > Key: HDFS-12354 > URL: https://issues.apache.org/jira/browse/HDFS-12354 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode, ozone > Reporter: Weiwei Yang > Assignee: Weiwei Yang > > {{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. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org