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

MetaTableAccessor shouldn't use ZooKeeeper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Client, Zookeeper
    • None
    • Reviewed

    Description

      After committing patch for HBASE-4495, there's an further improvement which can be made (discussed originally on review board to that jira).

      We have MetaTableAccessor and MetaTableLocator classes. First one is used to access information stored in hbase:meta table. Second one is used to deal with ZooKeeper state to find out region server hosting hbase:meta, wait for it to become available and so on.

      MetaTableAccessor, in turn, should only operate on the meta table content, so shouldn't need ZK. The only reason why MetaTableAccessor is using ZK - when callers request assignment information, they can request location of meta table itself, which we can't read from meta, so in that case MetaTableAccessor relays the call to MetaTableLocator. May be the solution here is to declare that clients of MetaTableAccessor shall not use it to work with meta table itself (not it's content).

      Attachments

        1. HBASE-11462.v4.patch
          36 kB
          Michael Stack
        2. HBASE-11462.v4.patch
          36 kB
          Michael Stack
        3. HBASE-11462.v4.patch
          36 kB
          Mikhail Antonov

        Activity

          People

            mantonov Mikhail Antonov
            mantonov Mikhail Antonov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: