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

ExportSnapshot chmod flag uses value as decimal

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0-alpha-1, 2.2.7, 2.5.0, 2.3.5, 2.4.2
    • None
    • None

    Description

      ExportSnapshot reads the chmod flag as a decimal value. In HBase 1 the value is handled as octal as an operator expects it.

      As an example -chmod 755 will result in the following permission:

      --wxrw--wt   3 hbase hbase        13314534 2021-02-25 12:38 /tmp/chmod755/archive/data/default/cluster_test/045e4c368075d2c6d947cba7140c443a/test_cf/f7d5156d44974e7da8c983f08512f6a0 

      This bug was introduced in HBase 2.0.0 with the migration to Apache CLI.

      Workaround: Use the decimal representation. 755 -> 493 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            psomogyi Peter Somogyi
            psomogyi Peter Somogyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment