hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guanghao Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16939) ExportSnapshot: set owner and permission on right directory
Date Tue, 25 Oct 2016 02:18:58 GMT
Guanghao Zhang created HBASE-16939:

             Summary: 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
            Priority: Minor

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

View raw message