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

Incr/decr on the reference count of HConnectionImplementation need be atomic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • Client
    • None

    Description

      Currently, the incr/decr operation on the ref count of HConnectionImplementation are not atomic. This may cause that the ref count always be larger than 0 and the connection never be closed.

          /**
           * Increment this client's reference count.
           */
          void incCount() {
            ++refCount;
          }
      
          /**
           * Decrement this client's reference count.
           */
          void decCount() {
            if (refCount > 0) {
              --refCount;
            }
          }
      

      Attachments

        1. HBASE-11685-trunk-v1.diff
          2 kB
          Shaohui Liu
        2. HBASE-11685-trunk-v2.diff
          2 kB
          Shaohui Liu
        3. HBASE-11685-trunk-v3.diff
          2 kB
          Shaohui Liu
        4. HBASE-11685-trunk-v4.diff
          2 kB
          Shaohui Liu
        5. HBASE-11685-trunk-v5.diff
          2 kB
          Shaohui Liu
        6. HBASE-11685-trunk-v6.diff
          2 kB
          Shaohui Liu

        Activity

          People

            Unassigned Unassigned
            liushaohui Shaohui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: