hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4647) llegalStateException renaming file under snapshottable directory
Date Thu, 04 Apr 2013 22:42:16 GMT

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

Arpit Agarwal updated HDFS-4647:
--------------------------------

    Attachment: HDFS-4647.2.patch

Updated patch to fix another bug with the following sequence:
1. Create dir.
2. Put file.
3. take snapshot of dir.
4. rename file.
5. take snapshot of dir again.
6. rename the same file again.

Step 6 was corrupted the diff list for the second snapshot. This has been fixed.

Also updated the tests.

Many thanks to Jing and Nicholas for all the help and for authoring the most complicated parts
of the patch.
                
> llegalStateException renaming file under snapshottable directory
> ----------------------------------------------------------------
>
>                 Key: HDFS-4647
>                 URL: https://issues.apache.org/jira/browse/HDFS-4647
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: Snapshot (HDFS-2802)
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>             Fix For: Snapshot (HDFS-2802)
>
>         Attachments: HDFS-4647.2.patch, HDFS-4647.patch, HDFS-4647.patch
>
>
> To repro:
> hadoop fs -mkdir /1
> hdfs dfsadmin -allowSnapsot /1
> hadoop fs -createSnapshot /1 snap1
> hadoop fs -put f1 /1
> Final command throws:
> put: java.lang.IllegalStateException

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