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

consolidate the getTableDescriptors() semantic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 1.0.0
    • Client, master
    • None

    Description

      Master getTableDescriptors() which is called by Admin.listTables() has a couple of different behaviors depending on how it is called.

      after HBASE-12073 with the AccessController enabled, we now get a "global admin" required if listTables() is called without a regex otherwise we return only the table that the user can see (we show only the tables that the user have access to, which means or the user is a global admin or it has a table-level create/admin). We probably should have the second behavior even without regex, since I should able to see "my own tables".

      getTableDescriptors() is returning only non system tables. Tools like user_permission that are doing "for each listTable(): userPerm(table)" are losing the system tables, so stuff like user_permission 'hbase:acls' will not result any result.

      Attachments

        1. HBASE-12564-v2.patch
          95 kB
          Matteo Bertozzi
        2. HBASE-12564-v1.patch
          83 kB
          Matteo Bertozzi
        3. HBASE-12564-v0.patch
          50 kB
          Matteo Bertozzi

        Activity

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: