You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Peter Somogyi (Jira)" <ji...@apache.org> on 2021/02/26 15:43:00 UTC

[jira] [Created] (HBASE-25611) ExportSnapshot chown flag uses value as decimal

Peter Somogyi created HBASE-25611:
-------------------------------------

             Summary: ExportSnapshot chown flag uses value as decimal
                 Key: HBASE-25611
                 URL: https://issues.apache.org/jira/browse/HBASE-25611
             Project: HBase
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Peter Somogyi
            Assignee: Peter Somogyi


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

As an example -chown 755 will result in the following permission:
{noformat}
--wxrw--wt   3 hbase hbase        13314534 2021-02-25 12:38 /tmp/chmod755/archive/data/default/cluster_test/045e4c368075d2c6d947cba7140c443a/test_cf/f7d5156d44974e7da8c983f08512f6a0 {noformat}
This bug was introduced in HBase 2.0.0 with the migration to Apache CLI.

Workaround: Use the decimal representation. 755 -> 493 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)