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

Extract interface out of HTable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.0
    • Client
    • None
    • Reviewed

    Description

      As per discussions in Hackathon, we have extracted interface out of HTable and named it as HTableInterface. This will make unit testing client code easier and simplify client API.

      It opens other possibilities such as creating a HTable that does not do any RPC calls, MockHTable etc.

      HTablePool still returns HTable instances. But we haxxve added a setter method for HTableInterfaceFactory on it. Thus developers can write their own HTableInterfaceFactory impl to return their own HTableInterface implementation.

      I have assigned this issue to 0.21 but you may consider it to move it to 0.20 if possible.

      Attachments

        1. HTableinterface.patch
          2 kB
          Lars Francke
        2. HTableInterface.patch
          74 kB
          Vaibhav Puranik
        3. HTableInterface.patch
          10 kB
          Vaibhav Puranik
        4. HTableinterface-deletes.patch
          0.9 kB
          Lars Francke

        Activity

          People

            Unassigned Unassigned
            pvaibhav Vaibhav Puranik
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: