[ 
https://issues.apache.org/jira/browse/HDFS-14803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919553#comment-16919553
 ] 

hemanthboyina commented on HDFS-14803:
--------------------------------------

{code:java}
      onBlockBoundary = unprotectedTruncate(fsn, iip, newLength,
          toRemoveBlocks, mtime, delta);
      if (!onBlockBoundary) {
          ....
        truncateBlock = prepareFileForTruncate(fsn, iip, clientName,
            clientMachine, lastBlockDelta, null);
      } 
   ....
   return new TruncateResult(onBlockBoundary, fsd.getAuditFileInfo(iip));{code}
the onblockboundary returns false , if the number of blocks is one . Even after 
preparing the file for truncate the result was not updated as true . 

 

> Truncate return value was wrong
> -------------------------------
>
>                 Key: HDFS-14803
>                 URL: https://issues.apache.org/jira/browse/HDFS-14803
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: hemanthboyina
>            Assignee: hemanthboyina
>            Priority: Major
>
> Even the truncate block is updated as Under Construction  and set with new 
> time stamp , Truncates returns false as result 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to