hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hairong Kuang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3320) NPE in NetworkTopology.getDistance()
Date Wed, 18 Jun 2008 23:11:47 GMT

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

Hairong Kuang updated HADOOP-3320:
----------------------------------

    Hadoop Flags: [Reviewed]
          Status: Patch Available  (was: Open)

> NPE in NetworkTopology.getDistance()
> ------------------------------------
>
>                 Key: HADOOP-3320
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3320
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.14.0
>            Reporter: Konstantin Shvachko
>            Assignee: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: NullWriter.patch
>
>
> I am seeing the following exception:
> {code}
> 08/04/28 20:15:09 ERROR dfs.NNThroughputBenchmark: java.lang.NullPointerException
> 	at org.apache.hadoop.net.NetworkTopology.getDistance(NetworkTopology.java:443)
> 	at org.apache.hadoop.dfs.ReplicationTargetChooser.getPipeline(ReplicationTargetChooser.java:457)
> 	at org.apache.hadoop.dfs.ReplicationTargetChooser.chooseTarget(ReplicationTargetChooser.java:126)
> 	at org.apache.hadoop.dfs.ReplicationTargetChooser.chooseTarget(ReplicationTargetChooser.java:72)
> 	at org.apache.hadoop.dfs.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1140)
> 	at org.apache.hadoop.dfs.NameNode.addBlock(NameNode.java:300)
> 	at org.apache.hadoop.dfs.NNThroughputBenchmark$BlockReportStats.addBlocks(NNThroughputBenchmark.java:786)
> 	at org.apache.hadoop.dfs.NNThroughputBenchmark$BlockReportStats.generateInputs(NNThroughputBenchmark.java:775)
> 	at org.apache.hadoop.dfs.NNThroughputBenchmark$OperationStatsBase.benchmark(NNThroughputBenchmark.java:203)
> 	at org.apache.hadoop.dfs.NNThroughputBenchmark.runBenchmark(NNThroughputBenchmark.java:1035)
> 	at org.apache.hadoop.dfs.NNThroughputBenchmark.main(NNThroughputBenchmark.java:1053)
> {code}
> It looks like the problem is in NetworkTopology.chooseRandom(String, String), which returns
null in certain cases, but the value returned is never checked for null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message