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

Extra bytes are getting released from reservedSpace for append

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.8.0, 2.7.3, 2.6.5, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      1. File already have some bytes available in block. (ex: 1024B)
      2. Re-open the file for append, (Here reserving for (BlockSize-1024) bytes)
      3. write one byte and flush,
      4. close()

      After close(), releasing BlockSize-1 bytes from reservedspace instead of BlockSize-1025 bytes.
      Extra bytes released from reservedSpace may create problem for other writers.

      Attachments

        1. HDFS-10271-branch-2.7-01.patch
          5 kB
          Brahma Reddy Battula
        2. HDFS-10271-01.patch
          5 kB
          Brahma Reddy Battula

        Issue Links

          Activity

            People

              brahmareddy Brahma Reddy Battula
              brahmareddy Brahma Reddy Battula
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: