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

Rewrite deadlock prevention for concurrent connection close

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The deadlock prevention approach used in HBASE-14241 introduces unnecessary logic which is not intuitive.

      Depending on the value for config hbase.ipc.client.specificThreadForWriting , there may or may not be CallSender threads running.

      The attached patch simplifies deadlock prevention by using a Set which represents the Connections to be closed. Outside the synchronized (connections) block, this Set is iterated where the Connections are closed.

      Attachments

        1. 14449-branch-1.0.txt
          11 kB
          Ted Yu
        2. 14449-v1.txt
          11 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: