Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3184 Add public HDFS client API
  3. HDFS-4525

Provide an API for knowing that whether file is closed or not.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha, 3.0.0-alpha1
    • 2.1.0-beta
    • namenode
    • None

    Description

      Currently recoverLease API will return true if file is already closed. Otherwise it will trigger internalLease recovery and return false. It may take some time to really complete this recovery and file to be closed completely. So, there is noway for the users to wait correctly until file is closed completely.
      It would good if we have one API which says whether that file is closed or not. So, that users can relay on that proceed further if and only if file is closed completely.

      See the discussion in HBASE-7878

      Attachments

        1. HDFS-4525.patch
          10 kB
          SreeHari
        2. HDFS-4525.patch
          10 kB
          SreeHari
        3. HDFS-4525.patch
          11 kB
          SreeHari
        4. HDFS-4525.patch
          11 kB
          SreeHari
        5. HDFS-4525.patch
          11 kB
          SreeHari
        6. 4525-1.1.txt
          5 kB
          Ted Yu

        Issue Links

          Activity

            People

              jacsparrow SreeHari
              umamaheswararao Uma Maheswara Rao G
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: