You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "dhruba borthakur (JIRA)" <ji...@apache.org> on 2007/03/15 21:39:09 UTC

[jira] Updated: (HADOOP-1122) Null pointer exception in chooseTarget

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

dhruba borthakur updated HADOOP-1122:
-------------------------------------

    Attachment: chooseTargetNPE.patch

Prevent the divide-by-zero exception by checking to see if the number of racks is zero. (No datanodes had checked in with the namenode).

> Null pointer exception in chooseTarget
> --------------------------------------
>
>                 Key: HADOOP-1122
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1122
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: dhruba borthakur
>         Assigned To: dhruba borthakur
>         Attachments: chooseTargetNPE.patch
>
>
> 2007-03-15 20:18:02,542 INFO org.apache.hadoop.ipc.Server: IPC Server handler 6 on 8020 call error: java.io.IOException: java.lang.ArithmeticException: / by zero
> java.io.IOException: java.lang.ArithmeticException: / by zero
>     at org.apache.hadoop.dfs.FSNamesystem$ReplicationTargetChooser.chooseTarget(FSNamesystem.java:2809)
>     at org.apache.hadoop.dfs.FSNamesystem$ReplicationTargetChooser.chooseTarget(FSNamesystem.java:2773)
>     at org.apache.hadoop.dfs.FSNamesystem.startFile(FSNamesystem.java:724)
>     at org.apache.hadoop.dfs.NameNode.create(NameNode.java:283)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:336)
>     at org.apache.hadoop.ipc.Server$Handler.run(Server.java:559)

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