hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10810) Setreplication removing block from underconstrcution temporarily when batch IBR is enabled.
Date Wed, 14 Sep 2016 03:04:20 GMT

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

Brahma Reddy Battula commented on HDFS-10810:
---------------------------------------------

getUnderReplicatedBlocksCount() should return 0 after calling the setreplication on that file..?
am I missed something, it should return "1" right..? hence testcase failed without fix 

{code}
262	      dfs.setReplication(filePath, (short) 10);
263	      Thread.sleep(3000);
264	      assertEquals(1, cluster.getNamesystem().getBlockManager()
265	          .getUnderReplicatedBlocksCount());
{code}

>  Setreplication removing block from underconstrcution temporarily when batch IBR is enabled.
> --------------------------------------------------------------------------------------------
>
>                 Key: HDFS-10810
>                 URL: https://issues.apache.org/jira/browse/HDFS-10810
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HDFS-10810-002.patch, HDFS-10810-003.patch, HDFS-10810.patch
>
>
> 1)Batch IBR is enabled with number of committed blocks allowed=1
> 2) Written one block and closed the file without waiting for IBR
> 3)Setreplication called immediately on the file. 
> So till the finalized IBR Received, this block will be marked as corrupt.



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

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


Mime
View raw message