hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4078) Handle replication in snapshots
Date Mon, 22 Oct 2012 18:50:12 GMT

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

Suresh Srinivas commented on HDFS-4078:
---------------------------------------

bq. I would really have preferred to see some automated tests included with this change, as
an incorrect implementation of this could result in data loss from snapshots. At least, a
follow-up JIRA should be filed to add some automated tests for this functionality.
Aaron, please see the label "needs-test" all these jiras will need subsequent tests.
                
> Handle replication in snapshots
> -------------------------------
>
>                 Key: HDFS-4078
>                 URL: https://issues.apache.org/jira/browse/HDFS-4078
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>              Labels: needs-test
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: h4078_20121021.patch
>
>
> Without snapshots, file replication is the same as block replication.
> With snapshot, the file replication R_o of the original file and the file replication
R_s of the snapshot file could possibly be different.  Since the blocks are shared between
the original file and the snapshot file, block replication is max(R_o, R_s).  If there are
more than one snapshots, block replication is the max file replication of the original file
and all snapshot files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message