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

Hudson commented on HBASE-17347:
--------------------------------

SUCCESS: Integrated in Jenkins build HBase-Trunk_matrix #2168 (See 
[https://builds.apache.org/job/HBase-Trunk_matrix/2168/])
HBASE-17347 ExportSnapshot may write snapshot info file to wrong (tedyu: rev 
5ebb25d601e6b8b12c7cf52f5d6784d9363d6b4f)
* (edit) 
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java


> ExportSnapshot may write snapshot info file to wrong directory when 
> specifying target name
> ------------------------------------------------------------------------------------------
>
>                 Key: HBASE-17347
>                 URL: https://issues.apache.org/jira/browse/HBASE-17347
>             Project: HBase
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 2.0.0
>            Reporter: Jianwei Cui
>            Assignee: Jianwei Cui
>            Priority: Minor
>         Attachments: HBASE-17347-v1.patch
>
>
> Exportsnapshot will write a new snapshot info file when specifying the target 
> name:
> {code}
>     if (!targetName.equals(snapshotName)) {
>       SnapshotDescription snapshotDesc =
>         SnapshotDescriptionUtils.readSnapshotInfo(inputFs, snapshotDir)
>           .toBuilder()
>           .setName(targetName)
>           .build();
>       SnapshotDescriptionUtils.writeSnapshotInfo(snapshotDesc, 
> snapshotTmpDir, outputFs);
>     }
> {code}
> The snapshot info file will be written to the snapshot tmp directory, 
> however, it should be directly written to the snapshot directory if 
> {{snapshot.export.skip.tmp}} is true. In addition, owner and permission 
> should be set for the new snapshot info file when needed.



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

Reply via email to