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

Ayush Saxena commented on HDFS-14803:
-------------------------------------

[~hemanthboyina] The truncate return response is based on following logic :


{noformat}
Returns:
true if client does not need to wait for block recovery, false if client needs 
to wait for block recovery.
{noformat}

Not whether truncated or not,  That is why onBlockBoundary is used for return 
response. Seems the behavior is correct only, Since you have one block and you 
aren't truncating at boundary, You need to wait for recovery, hence false. 
Please check again once.

> 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
>         Attachments: HDFS-14803.patch
>
>
> 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