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

Deprecate exists() and isDir() to simplify ClientProtocol.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.15.0
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Deprecates exists() from ClientProtocol

      Description

      ClientProtocol can be simplified by removing two methods

      public boolean exists(String src) throws IOException;
      public boolean isDir(String src) throws IOException;
      

      This is a redundant api, which can be implemented in DFSClient as convenience methods using

      public DFSFileInfo getFileInfo(String src) throws IOException;
      

      Note that we already deprecated several Filesystem method and advised to use getFileStatus() instead.
      Should we deprecate them in 0.16?

        Attachments

        1. HADOOP-2634-1.patch
          8 kB
          Lohit Vijayarenu
        2. HADOOP-2634-2.patch
          8 kB
          Lohit Vijayarenu

          Issue Links

            Activity

              People

              • Assignee:
                lohit Lohit Vijayarenu
                Reporter:
                shv Konstantin Shvachko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: