Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5053

HCM Tests leak connections

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.94.0
    • Fix Version/s: 0.94.0
    • Component/s: test
    • Labels:
      None

      Description

      There are simple leaks and one more complex.

      The complex one comes from the fact fact HConnectionManager.HConnectionImplementation keeps a reference to the configuration used for the creation. So if this configuration is updated later, the HConnectionKey created initially will differ from the current one. As a consequence, the close() will not find the connection anymore in the list, and the connection won't be deleted.

      I added a warning when a close does not find the connection in the list; but I wonder if we should not copy the HConnectionKey instead of keeping a reference.

        Attachments

        1. 5053.patch
          4 kB
          Nicolas Liochon
        2. 5053.v2.patch
          5 kB
          Nicolas Liochon
        3. 5053.v2.patch
          5 kB
          Nicolas Liochon

          Issue Links

            Activity

              People

              • Assignee:
                nkeywal Nicolas Liochon
                Reporter:
                nkeywal Nicolas Liochon
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: