Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10909 Abstract out ZooKeeper usage in HBase - phase 1
  3. HBASE-11092

Server interface should have method getConsensusProvider()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.99.0
    • 0.99.0
    • Consensus
    • None
    • Reviewed

    Description

      As discussed in comments to HBASE-10915, we need to have a proper way to retrieve instance of consensus provider, and Server interface seems the right one.

      Since Server interface lives in hbase-client maven module, the following approach is implemented in this patch:

      • hbase-client module has very basic (almost marker) interface ConsensusProvider to return instance of consensus provider from the Server
      • hbase-server module has BaseConsensusProvider which defines the consensus interfaces
      • Implementations shall subclass BaseConsensusProvider
      • whoever wants to get ConsensusProvider from raw Server interface on hbase-server side, has to typecast: (BaseConsensusProvider)

      Attachments

        1. HBASE-11092.patch
          23 kB
          Mikhail Antonov
        2. HBASE-11092.patch
          43 kB
          Mikhail Antonov
        3. HBASE_11092.patch
          47 kB
          Mikhail Antonov

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: