Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1703

Small cleanup of DistributedFileSystem and DFSClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.15.0
    • None
    • None

    Description

      Here is a small code cleanup (276 lines), mainly removing some uses of the deprecated UTF8 class.

      • dfs.DistributedFileSystem:
        • removed unused private field: localFs
        • corrected some >80 columns lines
        • replaced some use of {{UTF8 getPath() { return new UTF8(getPathName()); }

          }}
          with String getPathName()

      • dfs.DFSClient:
        • removed some UTF8 in favor of String
        • DFSOutputStream: replaced UTF8 with String
      • a few other minor updates reflecting the changes from UTF8 to Strings.

      All JUnit tests pass successfully.

      Thanks,
      Christophe T.

      Attachments

        1. 1703-20070816b.patch
          11 kB
          Christophe Taton

        Activity

          People

            kryzthov Christophe Taton
            kryzthov Christophe Taton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: