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

Deprecate FileSystem APIs that promote inefficient call patterns.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha4
    • 3.0.0-alpha4
    • fs
    • None

    Description

      FileSystem contains several methods that act as convenience wrappers over calling getFileStatus and retrieving a single property of the returned FileStatus. These methods have a habit of fostering inefficient call patterns in applications, resulting in multiple redundant getFileStatus calls. For HDFS, this translates into wasteful NameNode RPC traffic. For file systems backed by cloud object stores, this translates into wasteful HTTP traffic. This issue proposes to deprecate these methods and instead encourage applications to call getFileStatus and then reuse the same FileStatus instance as needed.

      Attachments

        1. HADOOP-13321.000.patch
          3 kB
          Mingliang Liu
        2. HADOOP-13321.001.patch
          3 kB
          Mingliang Liu
        3. HADOOP-13321.002.patch
          2 kB
          Mingliang Liu
        4. HADOOP-13321.003.patch
          4 kB
          Mingliang Liu
        5. HADOOP-13321.004.patch
          6 kB
          Mingliang Liu

        Issue Links

          Activity

            People

              liuml07 Mingliang Liu
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: