[ 
https://issues.apache.org/jira/browse/HDFS-2436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135469#comment-13135469
 ] 

Tsz Wo (Nicholas), SZE commented on HDFS-2436:
----------------------------------------------

Arpit also found that there is a NPE if calling getFileChecksum(..) with a 
directory.
{noformat}
2011-10-24 15:23:16,569 WARN 
org.apache.hadoop.hdfs.web.resources.ExceptionHandler: INTERNAL_SERVER_ERROR
java.lang.NullPointerException
        at org.apache.hadoop.hdfs.DFSClient.getFileChecksum(DFSClient.java:783)
        at org.apache.hadoop.hdfs.DFSClient.getFileChecksum(DFSClient.java:771)
        at 
org.apache.hadoop.hdfs.server.datanode.web.resources.DatanodeWebHdfsMethods$3.run(DatanodeWebHdfsMethods.java:259)
        ...
{noformat}

                
> FSNamesystem.setTimes(..) expects the path is a file.
> -----------------------------------------------------
>
>                 Key: HDFS-2436
>                 URL: https://issues.apache.org/jira/browse/HDFS-2436
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.205.0
>            Reporter: Arpit Gupta
>
> FSNamesystem.setTimes(..) does not work if the path is a directory.
> Arpit found this bug when testing webhdfs:
> {quote}
> settimes api is working when called on a file, but when called on a dir it 
> returns a 404. I should be able to set time on both a file and a directory.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to