Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-469

HiveClientCache may return a closed client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4, 0.5
    • 0.4.1
    • None
    • None

    Description

      HiveClientCache does a health check before returning the client. During the health check the client may get closed via the RemovalListener if

      1) No one is else is using it
      2) It is beyond expiry time for the client
      3) Another thread access the case which may trigger the RemovalListener

      In this case the get() call would end up returning a closed client.

      Attachments

        1. J370-patch9.diff
          3 kB
          Arup Malakar

        Activity

          People

            amalakar Arup Malakar
            amalakar Arup Malakar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: