[jira] [Updated] (HDFS-8296) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode.
[ https://issues.apache.org/jira/browse/HDFS-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Surendra Singh Lilhore updated HDFS-8296: - Resolution: Not A Problem Status: Resolved (was: Patch Available) > BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if > namenode in safe mode. > --- > > Key: HDFS-8296 > URL: https://issues.apache.org/jira/browse/HDFS-8296 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode >Affects Versions: 2.6.0 >Reporter: Surendra Singh Lilhore >Assignee: Surendra Singh Lilhore > Labels: BB2015-05-RFC > Attachments: HDFS-8296.patch > > > {{underReplicatedBlocksCount}} update by the {{updateState()}} API. > {code} > void updateState() { > pendingReplicationBlocksCount = pendingReplications.size(); > underReplicatedBlocksCount = neededReplications.size(); > corruptReplicaBlocksCount = corruptReplicas.size(); > } > {code} > but this will not call when NN in safe mode. This is happening because > "computeDatanodeWork()" we will return 0 if NN in safe mode > {code} > int computeDatanodeWork() { >. > if (namesystem.isInSafeMode()) { > return 0; > } > > > this.updateState(); > > > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-8296) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode.
[ https://issues.apache.org/jira/browse/HDFS-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] surendra singh lilhore updated HDFS-8296: - Labels: BB2015-05-RFC (was: BB2015-05-TBR) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode. --- Key: HDFS-8296 URL: https://issues.apache.org/jira/browse/HDFS-8296 Project: Hadoop HDFS Issue Type: Bug Components: namenode Affects Versions: 2.6.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Labels: BB2015-05-RFC Attachments: HDFS-8296.patch {{underReplicatedBlocksCount}} update by the {{updateState()}} API. {code} void updateState() { pendingReplicationBlocksCount = pendingReplications.size(); underReplicatedBlocksCount = neededReplications.size(); corruptReplicaBlocksCount = corruptReplicas.size(); } {code} but this will not call when NN in safe mode. This is happening because computeDatanodeWork() we will return 0 if NN in safe mode {code} int computeDatanodeWork() { . if (namesystem.isInSafeMode()) { return 0; } this.updateState(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-8296) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode.
[ https://issues.apache.org/jira/browse/HDFS-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer updated HDFS-8296: --- Labels: BB2015-05-TBR (was: ) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode. --- Key: HDFS-8296 URL: https://issues.apache.org/jira/browse/HDFS-8296 Project: Hadoop HDFS Issue Type: Bug Components: namenode Affects Versions: 2.6.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Labels: BB2015-05-TBR Attachments: HDFS-8296.patch {{underReplicatedBlocksCount}} update by the {{updateState()}} API. {code} void updateState() { pendingReplicationBlocksCount = pendingReplications.size(); underReplicatedBlocksCount = neededReplications.size(); corruptReplicaBlocksCount = corruptReplicas.size(); } {code} but this will not call when NN in safe mode. This is happening because computeDatanodeWork() we will return 0 if NN in safe mode {code} int computeDatanodeWork() { . if (namesystem.isInSafeMode()) { return 0; } this.updateState(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-8296) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode.
[ https://issues.apache.org/jira/browse/HDFS-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] surendra singh lilhore updated HDFS-8296: - Status: Patch Available (was: Open) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode. --- Key: HDFS-8296 URL: https://issues.apache.org/jira/browse/HDFS-8296 Project: Hadoop HDFS Issue Type: Bug Components: namenode Affects Versions: 2.6.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Attachments: HDFS-8296.patch {{underReplicatedBlocksCount}} update by the {{updateState()}} API. {code} void updateState() { pendingReplicationBlocksCount = pendingReplications.size(); underReplicatedBlocksCount = neededReplications.size(); corruptReplicaBlocksCount = corruptReplicas.size(); } {code} but this will not call when NN in safe mode. This is happening because computeDatanodeWork() we will return 0 if NN in safe mode {code} int computeDatanodeWork() { . if (namesystem.isInSafeMode()) { return 0; } this.updateState(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-8296) BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode.
[ https://issues.apache.org/jira/browse/HDFS-8296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] surendra singh lilhore updated HDFS-8296: - Attachment: HDFS-8296.patch BlockManager.getUnderReplicatedBlocksCount() is not giving correct count if namenode in safe mode. --- Key: HDFS-8296 URL: https://issues.apache.org/jira/browse/HDFS-8296 Project: Hadoop HDFS Issue Type: Bug Components: namenode Affects Versions: 2.6.0 Reporter: surendra singh lilhore Assignee: surendra singh lilhore Attachments: HDFS-8296.patch {{underReplicatedBlocksCount}} update by the {{updateState()}} API. {code} void updateState() { pendingReplicationBlocksCount = pendingReplications.size(); underReplicatedBlocksCount = neededReplications.size(); corruptReplicaBlocksCount = corruptReplicas.size(); } {code} but this will not call when NN in safe mode. This is happening because computeDatanodeWork() we will return 0 if NN in safe mode {code} int computeDatanodeWork() { . if (namesystem.isInSafeMode()) { return 0; } this.updateState(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)