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

Usability improvement to HTablePool

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.90.3
    • 0.92.0
    • Client
    • None
    • Reviewed

    Description

      To improve the usability of the HTablePool the implementation should not rely on the user returning the connection to the pool but rather do that transparently when user closes the HTableImplementation it got.

      To do that a HTableImplementation proxy implementation should be returned that wraps a HTable object and holds a reference to the pool. When the client close the proxy it will actually automatically return the wrapped HTable back in pool to be reused. In this case the method HTablePool.putTable don't need to be public

      Attachments

        1. TestHTablePool-trunk.patch
          5 kB
          Daniel Iancu
        2. 4054.addendum
          1 kB
          Ted Yu
        3. HBASE-4054_Usability_improvement_to_HTablePool-trunk.patch
          32 kB
          Daniel Iancu
        4. HBASE-4054_Usability_improvement_to_HTablePool.patch
          22 kB
          Daniel Iancu

        Issue Links

          Activity

            People

              diancu Daniel Iancu
              diancu Daniel Iancu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: