hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077200 - in /hadoop/common/branches/branch-0.20-security-patches/src: core/org/apache/hadoop/fs/HarFileSystem.java test/org/apache/hadoop/fs/TestHarFileSystem.java
Date Fri, 04 Mar 2011 03:51:16 GMT
Author: omalley
Date: Fri Mar  4 03:51:16 2011
New Revision: 1077200

URL: http://svn.apache.org/viewvc?rev=1077200&view=rev
Log:
commit 6c84692e295f83bb3fe0664035af859ae3a54da1
Author: Mahadev Konar <mahadev@cdev6022.inktomisearch.com>
Date:   Mon Feb 22 23:47:58 2010 +0000

    HADOOP:6558 from http://issues.apache.org/jira/secure/attachment/12436264/c6558_20100216b_y0.20.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HADOOP-6558. archive does not work with distcp -update. (nicholas via
    +    mahadev)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/HarFileSystem.java
    hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/fs/TestHarFileSystem.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/HarFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/HarFileSystem.java?rev=1077200&r1=1077199&r2=1077200&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/HarFileSystem.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/HarFileSystem.java
Fri Mar  4 03:51:16 2011
@@ -539,6 +539,13 @@ public class HarFileSystem extends Filte
   }
 
   /**
+   * @return null since no checksum algorithm is implemented.
+   */
+  public FileChecksum getFileChecksum(Path f) {
+    return null;
+  }
+
+  /**
    * Returns a har input stream which fakes end of 
    * file. It reads the index files to get the part 
    * file name and the size and start of the file.

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/fs/TestHarFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/fs/TestHarFileSystem.java?rev=1077200&r1=1077199&r2=1077200&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/fs/TestHarFileSystem.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/org/apache/hadoop/fs/TestHarFileSystem.java
Fri Mar  4 03:51:16 2011
@@ -314,4 +314,11 @@ public class TestHarFileSystem extends T
       e.printStackTrace(System.out);
     }
   }
+
+
+  public void testFileChecksum() {
+    final Path p = new Path("har://file-localhost/foo.har/file1");
+    final HarFileSystem harfs = new HarFileSystem();
+    assertEquals(null, harfs.getFileChecksum(p));
+  }
 }



Mime
View raw message