[jira] [Commented] (HDFS-8993) Balancer throws NPE
[ https://issues.apache.org/jira/browse/HDFS-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14721022#comment-14721022 ] Brahma Reddy Battula commented on HDFS-8993: Just made duplicate of HDFS-8992, I did it for you.. Balancer throws NPE --- Key: HDFS-8993 URL: https://issues.apache.org/jira/browse/HDFS-8993 Project: Hadoop HDFS Issue Type: Bug Components: balancer mover Affects Versions: 2.4.1 Reporter: He Xiaoqiao Balancer may throw NPE because the following {{if Statements}} at line 709 of Balancer.java {code:title=Balancer.java} synchronized (block) { // update locations for (String datanodeUuid : blk.getDatanodeUuids()) { final BalancerDatanode d = datanodeMap.get(datanodeUuid); if (datanode != null) { // not an unknown datanode block.addLocation(d); } } } {code} Before moving block, Balancer divides into two step to get all DNs info some blocks of DN from NN. Regarding one DN commission after {{getDatanodeReport}} then {{getBlockList}} and one block's target is above DN just right, It will throw NPE when dispatcher. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-8993) Balancer throws NPE
[ https://issues.apache.org/jira/browse/HDFS-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14721021#comment-14721021 ] He Xiaoqiao commented on HDFS-8993: --- sorry to create to the same ticket since first creation not complete... BTW, how to delete this ticket? Balancer throws NPE --- Key: HDFS-8993 URL: https://issues.apache.org/jira/browse/HDFS-8993 Project: Hadoop HDFS Issue Type: Bug Components: balancer mover Affects Versions: 2.4.1 Reporter: He Xiaoqiao Balancer may throw NPE because the following {{if Statements}} at line 709 of Balancer.java {code:title=Balancer.java} synchronized (block) { // update locations for (String datanodeUuid : blk.getDatanodeUuids()) { final BalancerDatanode d = datanodeMap.get(datanodeUuid); if (datanode != null) { // not an unknown datanode block.addLocation(d); } } } {code} Before moving block, Balancer divides into two step to get all DNs info some blocks of DN from NN. Regarding one DN commission after {{getDatanodeReport}} then {{getBlockList}} and one block's target is above DN just right, It will throw NPE when dispatcher. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HDFS-8993) Balancer throws NPE
[ https://issues.apache.org/jira/browse/HDFS-8993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14721019#comment-14721019 ] Brahma Reddy Battula commented on HDFS-8993: HI [~hexiaoqiao] , this is dupe of HDFS-8992..? Balancer throws NPE --- Key: HDFS-8993 URL: https://issues.apache.org/jira/browse/HDFS-8993 Project: Hadoop HDFS Issue Type: Bug Components: balancer mover Affects Versions: 2.4.1 Reporter: He Xiaoqiao Balancer may throw NPE because the following {{if Statements}} at line 709 of Balancer.java {code:title=Balancer.java} synchronized (block) { // update locations for (String datanodeUuid : blk.getDatanodeUuids()) { final BalancerDatanode d = datanodeMap.get(datanodeUuid); if (datanode != null) { // not an unknown datanode block.addLocation(d); } } } {code} Before moving block, Balancer divides into two step to get all DNs info some blocks of DN from NN. Regarding one DN commission after {{getDatanodeReport}} then {{getBlockList}} and one block's target is above DN just right, It will throw NPE when dispatcher. -- This message was sent by Atlassian JIRA (v6.3.4#6332)