hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-1122) Null pointer exception in chooseTarget
Date Thu, 15 Mar 2007 20:39:09 GMT

     [ 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.


Mime
View raw message