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

Prevent race condition between creating phoenix connection and closing phoenix driver/connection query services.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 4.1.0
    • None
    • None

    Description

      The race condition manifests when the following NPE is thrown:

      java.lang.NullPointerException
      Thrown-StackTrace: at org.apache.phoenix.jdbc.PhoenixConnection.<init>(PhoenixConnection.java:178)
      at org.apache.phoenix.query.ConnectionQueryServicesImpl.connect(ConnectionQueryServicesImpl.java:513)
      at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:116)
      
      

      Attachments

        1. PHOENIX-1143-3.0.patch
          97 kB
          Samarth Jain
        2. PHOENIX-1143_v3.patch
          23 kB
          Samarth Jain
        3. PHOENIX-1143_v4.patch
          22 kB
          Samarth Jain
        4. PHOENIX-1143-3.0_v4.patch
          21 kB
          Samarth Jain

        Activity

          People

            samarthjain Samarth Jain
            samarthjain Samarth Jain
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: