hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Andreina (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8150) Make getFileChecksum fail for blocks under construction
Date Tue, 28 Apr 2015 13:04:07 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

J.Andreina updated HDFS-8150:
-----------------------------
    Attachment: HDFS-8150.1.patch

Attached an initial patch. 
Please review.

> Make getFileChecksum fail for blocks under construction
> -------------------------------------------------------
>
>                 Key: HDFS-8150
>                 URL: https://issues.apache.org/jira/browse/HDFS-8150
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Kihwal Lee
>            Assignee: J.Andreina
>            Priority: Critical
>         Attachments: HDFS-8150.1.patch
>
>
> We have seen the cases of validating data copy using checksum then the content of target
changing. It turns out the target wasn't closed successfully, so it was still under-construction.
 One hour later, a lease recovery kicked in and truncated the block.
> Although this can be prevented in many ways, if there is no valid use case for getting
file checksum from under-construction blocks, can it be disabled?  E.g. Datanode can throw
an exception if the replica is not in the finalized state.



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

Mime
View raw message