Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16939

ExportSnapshot: set owner and permission on right directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 1.2.4, 1.1.8, 1.3.2, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        1. HBASE-16939.patch
          3 kB
          Guanghao Zhang
        2. HBASE-16939-v1.patch
          3 kB
          Guanghao Zhang

          Issue Links

            Activity

              People

              • Assignee:
                zghao Guanghao Zhang
                Reporter:
                zghao Guanghao Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: