hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-16939) ExportSnapshot: set owner and permission on right directory
Date Wed, 04 Oct 2017 15:36:00 GMT

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

Chia-Ping Tsai edited comment on HBASE-16939 at 10/4/17 3:35 PM:
-----------------------------------------------------------------

bq. committed on 1.1, 1.2, branch-1, master. holding on 1.3 since we are trying to get a release,
i'll commit it later for 1.3.1
The 1.3.1 had already released, but this fix hasn't be committed yet. Should we commit it
now? [~zghaobac] WDYT?


was (Author: chia7712):
bq. committed on 1.1, 1.2, branch-1, master. holding on 1.3 since we are trying to get a release,
i'll commit it later for 1.3.1
(for 0.98, open a backport jira for both HBASE-14445 and this one if you need this stuff in
0.98)
The 1.3.1 had already released, but this fix hasn't be committed yet. Should we commit it
now? [~zghaobac] WDYT?

> ExportSnapshot: set owner and permission on right directory
> -----------------------------------------------------------
>
>                 Key: HBASE-16939
>                 URL: https://issues.apache.org/jira/browse/HBASE-16939
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>            Priority: Minor
>             Fix For: 2.0.0, 1.4.0, 1.3.1, 1.2.4, 1.1.8
>
>         Attachments: HBASE-16939.patch, HBASE-16939-v1.patch
>
>
> {code}
> FileUtil.copy(inputFs, snapshotDir, outputFs, initialOutputSnapshotDir, false, false,
conf);
>       if (filesUser != null || filesGroup != null) {
>         setOwner(outputFs, snapshotTmpDir, filesUser, filesGroup, true);
>       }
>       if (filesMode > 0) {
>         setPermission(outputFs, snapshotTmpDir, (short)filesMode, true);
>       }
> {code}
> It copy snapshot manifest to initialOutputSnapshotDir, but it set owner on snapshotTmpDir.
They are different directory when skipTmp is true.
> Another problem is new cluster doesn't have .hbase-snapshot directory. So after export
snapshot, it should set owner on .hbase-snapshot directory.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message