HBase
  1. HBase
  2. HBASE-3777

Redefine Identity Of HBase Configuration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.90.2
    • Fix Version/s: 0.92.0
    • Component/s: Client, IPC/RPC
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Judging from the javadoc in HConnectionManager, sharing connections across multiple clients going to the same cluster is supposedly a good thing. However, the fact that there is a one-to-one mapping between a configuration and connection instance, kind of works against that goal. Specifically, when you create HTable instances using a given Configuration instance and a copy thereof, we end up with two distinct HConnection instances under the covers. Is this really expected behavior, especially given that the configuration instance gets cloned a lot?

      Here, I'd like to play devil's advocate and propose that we "deep-compare" HBaseConfiguration instances, so that multiple HBaseConfiguration instances that have the same properties map to the same HConnection instance. In case one is "concerned that a single HConnection is insufficient for sharing amongst clients", to quote the javadoc, then one should be able to mark a given HBaseConfiguration instance as being "uniquely identifiable".

      Note that "sharing connections makes clean up of HConnection instances a little awkward", unless of course, you apply the change described in HBASE-3766.

      1. HBASE-3777-V8.0.90.4.backport.patch
        76 kB
        Bright Fulton
      2. 3777-TOF.patch
        0.9 kB
        Ted Yu
      3. HBASE-3777-V6.patch
        54 kB
        Karthick Sankarachary
      4. HBASE-3777-V4.patch
        40 kB
        Karthick Sankarachary
      5. HBASE-3777-V3.patch
        38 kB
        Karthick Sankarachary
      6. HBASE-3777-V2.patch
        26 kB
        Karthick Sankarachary
      7. HBASE-3777.patch
        16 kB
        Karthick Sankarachary

        Issue Links

          Activity

          Karthick Sankarachary created issue -
          Karthick Sankarachary made changes -
          Field Original Value New Value
          Attachment HBASE-3777.patch [ 12476281 ]
          Karthick Sankarachary made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Karthick Sankarachary made changes -
          Link This issue is related to HBASE-3766 [ HBASE-3766 ]
          Dave Latham made changes -
          Link This issue relates to HBASE-2925 [ HBASE-2925 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476367 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476371 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476375 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476281 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476367 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476371 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476391 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476398 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476391 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777.patch [ 12476375 ]
          Dave Latham made changes -
          Link This issue relates to HBASE-3792 [ HBASE-3792 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777-V2.patch [ 12476567 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777-V3.patch [ 12476816 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777-V4.patch [ 12476948 ]
          Karthick Sankarachary made changes -
          Attachment HBASE-3777-V6.patch [ 12477166 ]
          Ted Yu made changes -
          Attachment 3777-TOF.patch [ 12477188 ]
          stack made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Eugene Koontz made changes -
          Link This issue relates to HBASE-3861 [ HBASE-3861 ]
          Bright Fulton made changes -
          Attachment HBASE-3777-V8.0.90.4.backport.patch [ 12496883 ]
          Ted Yu made changes -
          Link This issue is depended upon by HBASE-4508 [ HBASE-4508 ]

            People

            • Assignee:
              Karthick Sankarachary
              Reporter:
              Karthick Sankarachary
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development