hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu Angadi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-447) DistributedFileSystem.getBlockSize(Path) does not resolve absolute path
Date Thu, 16 Nov 2006 01:43:38 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-447?page=comments#action_12450255 ] 
            
Raghu Angadi commented on HADOOP-447:
-------------------------------------


Is there a way reproduce this?

Is the fix simply replacing 

       public long getBlockSize(Path f) throws IOException { 
          return dfs.getBlockSize(f); 
       } 

with

      public long getBlockSize(Path f) throws IOException { 
        return dfs.getBlockSize( makeAbsolute(f) ); 
      } 

in DistributedFileSystem.java ?
thanks.

> DistributedFileSystem.getBlockSize(Path) does not resolve absolute path
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-447
>                 URL: http://issues.apache.org/jira/browse/HADOOP-447
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Benjamin Reed
>         Assigned To: Raghu Angadi
>
> getBlockSize() does not check for an absolute path like the rest of the DistributeFileSystem
API does. Consequently getBlockSize(Path) does not work with relative paths.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message