Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16844

Fix Connection leak in ObjectStore when new Conf object is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Metastore
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The code path in ObjectStore.java currently leaks BoneCP (or Hikari) connection pools when a new configuration object is passed in. The code needs to ensure that the persistence-factory is closed before it is nullified.

      The relevant code is here. Note that pmf is set to null, but the underlying connection pool is not closed.

        Attachments

        1. HIVE-16844.1.patch
          0.6 kB
          Sunitha Beeram

          Issue Links

            Activity

              People

              • Assignee:
                sbeeram Sunitha Beeram
                Reporter:
                sbeeram Sunitha Beeram
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: