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

HCM Tests leak connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.0
    • 0.94.0
    • test
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: