You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Brandon Li (Updated) (JIRA)" <ji...@apache.org> on 2012/02/02 08:19:53 UTC
[jira] [Updated] (HDFS-2525) Race between BlockPoolSliceScanner and
append
[ https://issues.apache.org/jira/browse/HDFS-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Li updated HDFS-2525:
-----------------------------
Attachment: HDFS-2525-branch-0.23.patch
Changes in the patch:
1. handle FileNotFoundException in BlockPoolSliceScanner.verifyBlock() to avoid the possible deadloop in completeFile().
2. fix the class description for BlockPoolSliceScanner
3. enable DataScanner in TestAppendDifferntChecksum
> Race between BlockPoolSliceScanner and append
> ---------------------------------------------
>
> Key: HDFS-2525
> URL: https://issues.apache.org/jira/browse/HDFS-2525
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Brandon Li
> Priority: Critical
> Attachments: HDFS-2525-branch-0.23.patch
>
>
> I wrote a test which runs append() in a loop on a single file with a single replica, appending 0~100 bytes each time. If this races with the BlockPoolSliceScanner, I observe the BlockPoolSliceScanner getting FNFE, then reporting the block as bad to the NN. This causes the writer thread to loop forever on completeFile() since it doesn't see a valid replica.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira