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

Race condition can cause ConnectionQueryServicesImpl to be re-initialized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0, 3.2.0
    • Fix Version/s: 4.3.0, 3.3.0, 4.2.1, 3.2.1
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: