hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Trezzo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9922) Upgrade Domain placement policy status marks a good block in violation when there are decommissioned nodes
Date Tue, 14 Jun 2016 23:07:30 GMT

     [ https://issues.apache.org/jira/browse/HDFS-9922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Trezzo updated HDFS-9922:
-------------------------------
    Attachment: HDFS-9922-trunk-v3.patch

V3 attached.
# Fixed import issues in TestUpgradeDomainBlockPlacementPolicy.
# Removed extra live node filter in BlockPlacementPolicyWithUpgradeDomain.

> Upgrade Domain placement policy status marks a good block in violation when there are
decommissioned nodes
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-9922
>                 URL: https://issues.apache.org/jira/browse/HDFS-9922
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Chris Trezzo
>            Assignee: Chris Trezzo
>            Priority: Minor
>         Attachments: HDFS-9922-trunk-v1.patch, HDFS-9922-trunk-v2.patch, HDFS-9922-trunk-v3.patch
>
>
> When there are replicas of a block on a decommissioned node, BlockPlacementStatusWithUpgradeDomain#isUpgradeDomainPolicySatisfied
returns false when it should return true. This is because numberOfReplicas is the number of
in-service replicas for the block and upgradeDomains.size() is the number of upgrade domains
across all replicas of the block. Specifically, we hit this scenario when numberOfReplicas
is equal to upgradeDomainFactor and upgradeDomains.size() is greater than numberOfReplicas.
> {code}
> private boolean isUpgradeDomainPolicySatisfied() {
>     if (numberOfReplicas <= upgradeDomainFactor) {
>       return (numberOfReplicas == upgradeDomains.size());
>     } else {
>       return upgradeDomains.size() >= upgradeDomainFactor;
>     }
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message