Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13197 Connection API cleanup
  3. HBASE-13252

Get rid of managed connections and connection caching

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • API
    • None
    • Reviewed
    • Hide
      For a long time, HBase supported 2 types of connections - managed, which were cached and closed automatically when not needed, and unmanaged, where user is responsible for closing the connections by calling #close() on them.

      The concept of managed connections in HBase (deprecated before) has now been extinguished completely, and now all callers are responsible for managing the lifecycle of connections they acquire.
      Show
      For a long time, HBase supported 2 types of connections - managed, which were cached and closed automatically when not needed, and unmanaged, where user is responsible for closing the connections by calling #close() on them. The concept of managed connections in HBase (deprecated before) has now been extinguished completely, and now all callers are responsible for managing the lifecycle of connections they acquire.

    Description

      (Need to):

      • Remove CONNECTION_INSTANCES from ConnectionManager
      • Remove HConnectionKey
      • Remove 'managed' property from ClusterConnection, HCI and places where it's used now
      • AFAIS this property isn't visible to client (ClusterConnection is private interface), so technically this would not even be backward-incompatible change, and no release note needed?
      • In fact, ConnectionManager can be removed, too.

      Attachments

        1. HBASE-13252-v5.patch
          95 kB
          Mikhail Antonov
        2. HBASE-13252-v4.patch
          94 kB
          Mikhail Antonov
        3. HBASE-13252-v3.patch
          92 kB
          Mikhail Antonov
        4. HBASE-13252-v2.patch
          92 kB
          Mikhail Antonov
        5. HBASE-13252-v2.patch
          92 kB
          Mikhail Antonov
        6. HBASE-13252-v1.patch
          52 kB
          Mikhail Antonov
        7. HBASE-13252-v1.patch
          52 kB
          Mikhail Antonov
        8. HBASE-13252-v0.patch
          43 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: