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

ExportSnapshot: set owner and permission on right directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 1.2.4, 1.1.8, 1.3.2, 2.0.0
    • None
    • 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-v1.patch
          3 kB
          Guanghao Zhang
        2. HBASE-16939.patch
          3 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: