You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2016/04/08 09:30:25 UTC

[jira] [Created] (HDFS-10271) Extra bytes are getting released from reservedSpace for append

Brahma Reddy Battula created HDFS-10271:
-------------------------------------------

             Summary: Extra bytes are getting released from reservedSpace for append
                 Key: HDFS-10271
                 URL: https://issues.apache.org/jira/browse/HDFS-10271
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Brahma Reddy Battula
            Assignee: Brahma Reddy Battula
            Priority: Critical


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 reserved may create problem for other writers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)