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

LeaseManager monitor thread can crash if the last block is complete but another block is not.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.9, 2.3.0
    • 0.23.10, 2.3.0
    • None
    • None
    • Reviewed

    Description

      As mentioned in HDFS-5557, if a file has its last and penultimate block not completed and the file is being closed, the last block may be completed but the penultimate one might not. If this condition lasts long and the file is abandoned, LeaseManager will try to recover the lease and the block. But internalReleaseLease() will fail with invalid cast exception with this kind of file.

      Attachments

        1. HDFS-5558.branch-023.patch
          2 kB
          Kihwal Lee
        2. HDFS-5558.branch-023.patch
          2 kB
          Kihwal Lee
        3. HDFS-5558.patch
          1 kB
          Kihwal Lee
        4. HDFS-5558.patch
          0.8 kB
          Kihwal Lee

        Issue Links

          Activity

            People

              kihwal Kihwal Lee
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: