[
https://issues.apache.org/jira/browse/HDFS-14644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16884303#comment-16884303
]
Lisheng Sun commented on HDFS-14644:
------------------------------------
Thank [~jojochuang] [~sodonnell] for paying close attention to this issue.
I also agree this is expected behavior. My idea is to let users know about
this issue that decommission will never complete, because the target replicas
are more than the live nodes.
The solution I came up with:
# The blocks whose target replicas are more than the live nodes are showed on
web.
# The blocks that cannot be replicated when the node is on decommission are
known by command. This solution is similar to [~sodonnell] idea.
I think the purpose of this issue is to be more user friendly when decommission
never complete,because blocks that cannot be replicated. Please correct me if I
am wrong. Thanks.
> That replication of block failed leads to decommission is blocked when the
> number of replicas of block is greater than the number of datanode
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-14644
> URL: https://issues.apache.org/jira/browse/HDFS-14644
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Affects Versions: 3.1.1, 2.9.2, 3.0.3, 2.8.5, 2.7.7
> Reporter: Lisheng Sun
> Priority: Major
>
> 2019-07-10,15:37:18,028 WARN
> org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicy: Failed to
> place enough replicas, still in need of 5 to reach 10
> (unavailableStorages=[DISK, ARCHIVE],
> storagePolicy=BlockStoragePolicy\{HOT:7, storageTypes=[DISK],
> creationFallbacks=[], replicationFallbacks=[ARCHIVE]}, newBlock=false) All
> required storage types are unavailable: unavailableStorages=[DISK, ARCHIVE],
> storagePolicy=BlockStoragePolicy\{HOT:7, storageTypes=[DISK],
> creationFallbacks=[], replicationFallbacks=[ARCHIVE]}
> 2019-07-10,15:37:18,028 WARN
> org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicy: Failed to
> place enough replicas, still in need of 5 to reach 10
> (unavailableStorages=[], storagePolicy=BlockStoragePolicy\{HOT:7,
> storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]},
> newBlock=false) For more information, please enable DEBUG log level on
> org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicy
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]