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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.15.0
    • 0.17.0
    • None
    • None
    • Incompatible change, Reviewed
    • 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 Vijaya Renu
        2. HADOOP-2634-2.patch
          8 kB
          Lohit Vijaya Renu

        Issue Links

          Activity

            People

              lohit Lohit Vijaya Renu
              shv Konstantin Shvachko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: