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

Surendra Singh Lilhore commented on HDFS-14384:
-----------------------------------------------

Thanks [~daryn] for review..
{quote} # Why go through the work of inserting the new blocks in the old block 
list when it's going to be thrown away?
 # Why recreate locatedBlocks from newBlocks instead of just assigning 
newBlocks to locatedBlocks?{quote}
I just want to update the *lastLocatedBlock* and don't want to change the old 
fetched block list. 

If you feel it is not required, I can assign direct newBlocks to locatedBlocks.

> When lastLocatedBlock token expire, it will take 1~3s second to refetch it.
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-14384
>                 URL: https://issues.apache.org/jira/browse/HDFS-14384
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.7.2
>            Reporter: Surendra Singh Lilhore
>            Assignee: Surendra Singh Lilhore
>            Priority: Major
>         Attachments: HDFS-14384.001.patch
>
>
> Scenario :
>  1. Write file with one block which is in-progress.
>   2. Open input stream and close the output stream.
>   3. Wait for block token expiration and read the data.
>   4. Last block read take 1~3 sec to read it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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