Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1403

Race condition can cause ConnectionQueryServicesImpl to be re-initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.0, 3.2.0
    • 4.3.0, 3.3.0, 4.2.1, 3.2.1
    • None
    • None

    Description

      If there are multiple threads opening connections to the same Phoenix (HBase) instance concurrently, the same ConnectionQueryServicesImpl instance can be initialized multiple times. This can eventually cause some resources to leak, such as ZK connections.

      There is a synchronized block to prevent this, but PHOENIX-966 inadvertently disabled the function of the synchronized block.

      Attachments

        1. PHOENIX-1403.patch
          1 kB
          Gabriel Reid

        Activity

          People

            gabriel.reid Gabriel Reid
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: