Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-640

TestHDFSFileContextMainOperations uses old FileContext.mkdirs(..)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestHDFSFileContextMainOperations cannot be compiled:

      compile-hdfs-test:
          [javac] Compiling 119 source files to d:\@sze\hadoop\hdfs\h1\build\test\classes
          [javac] d:\@sze\hadoop\hdfs\h1\src\test\hdfs\org\apache\hadoop\fs\TestHDFSFileContextMainOperations.java:47: cannot find symbol
          [javac] symbol  : method mkdirs(org.apache.hadoop.fs.Path,org.apache.hadoop.fs.permission.FsPermission)
          [javac] location: class org.apache.hadoop.fs.FileContext
          [javac]     fc.mkdirs(defaultWorkingDirectory, FileContext.DEFAULT_PERM);
          [javac]       ^
          [javac] Note: Some input files use or override a deprecated API.
          [javac] Note: Recompile with -Xlint:deprecation for details.
          [javac] 1 error
      
      1. HDFS-640.patch
        0.7 kB
        Suresh Srinivas

        Activity

        Hide
        Suresh Srinivas added a comment -

        Changing TestHDFSFileContextMainOperations to use new FileContext.mkdir() instead of removed method FileContext.mkdirs()

        Show
        Suresh Srinivas added a comment - Changing TestHDFSFileContextMainOperations to use new FileContext.mkdir() instead of removed method FileContext.mkdirs()
        Hide
        Tsz Wo Nicholas Sze added a comment -

        +1 patch looks good.

        I tested the patch manually. TestHDFSFileContextMainOperations can be compiled and it ran successfully by "ant test -Dtestcase=TestHDFSFileContextMainOperations".

        Show
        Tsz Wo Nicholas Sze added a comment - +1 patch looks good. I tested the patch manually. TestHDFSFileContextMainOperations can be compiled and it ran successfully by "ant test -Dtestcase=TestHDFSFileContextMainOperations".
        Hide
        Suresh Srinivas added a comment -

        submitting the patch again to trigger hudson tests

        Show
        Suresh Srinivas added a comment - submitting the patch again to trigger hudson tests
        Hide
        Tsz Wo Nicholas Sze added a comment -

        Hudson does not seem working.

        Show
        Tsz Wo Nicholas Sze added a comment - Hudson does not seem working.
        Hide
        Suresh Srinivas added a comment -

        Cannot run test-patch due to build error (previous build does not compile).

        Show
        Suresh Srinivas added a comment - Cannot run test-patch due to build error (previous build does not compile).
        Hide
        Suresh Srinivas added a comment -

        Committing the to both release 21 and trunk.

        Show
        Suresh Srinivas added a comment - Committing the to both release 21 and trunk.
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #98 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Hdfs-trunk/98/)

        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #98 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Hdfs-trunk/98/ )
        Hide
        Hudson added a comment -

        Integrated in Hdfs-Patch-h2.grid.sp2.yahoo.net #20 (See http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-h2.grid.sp2.yahoo.net/20/)

        Show
        Hudson added a comment - Integrated in Hdfs-Patch-h2.grid.sp2.yahoo.net #20 (See http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-h2.grid.sp2.yahoo.net/20/ )

          People

          • Assignee:
            Suresh Srinivas
            Reporter:
            Tsz Wo Nicholas Sze
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development