Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8332

DFS client API calls should check filesystem closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha1
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      Users may need special attention for this change while upgrading to this version. Previously user could call some APIs(example: setReplication) wrongly even after closing the fs object. With this change DFS client will not allow any operations to call on closed fs objects. As calling fs operations on closed fs is not right thing to do, users need to correct the usage if any.
      Show
      Users may need special attention for this change while upgrading to this version. Previously user could call some APIs(example: setReplication) wrongly even after closing the fs object. With this change DFS client will not allow any operations to call on closed fs objects. As calling fs operations on closed fs is not right thing to do, users need to correct the usage if any.

    Description

      I could see listCacheDirectives() and listCachePools() APIs can be called even after the filesystem close. Instead these calls should do checkOpen and throws:

      java.io.IOException: Filesystem closed
      	at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:464)
      

      Attachments

        1. HDFS-8332.001.branch-2.patch
          21 kB
          Akira Ajisaka
        2. HDFS-8332-000.patch
          4 kB
          Rakesh Radhakrishnan
        3. HDFS-8332-001.patch
          20 kB
          Rakesh Radhakrishnan
        4. HDFS-8332-002.patch
          21 kB
          Rakesh Radhakrishnan
        5. HDFS-8332-002-Branch-2.patch
          22 kB
          Uma Maheswara Rao G

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              rakeshr Rakesh Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: