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

Fix Connection leak in ObjectStore when new Conf object is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Metastore
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: