Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-699

Memory leak when running Sentry w/ HiveServer2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • None
    • None

    Description

      Each time a query executes we create a new instance of HiveAuthzConf which in turn creates a ResourceAuthorizationProvider. Within ResourceAuthorizationProvider there is a thread local variable: "ThreadLocal<List<String>> lastFailedPrivileges" which is not getting garbage collected since the parent thread is still alive. Over time, this leads to a memory leak in HS2. We need to be sure that any ThreadLocal state is cleaned up when we are done using it (or consider avoiding the use of ThreadLocal if possible).

      Attachments

        1. SENTRY-699.1.patch
          2 kB
          Prasad Suresh Mujumdar

        Activity

          People

            prasadm Prasad Suresh Mujumdar
            lskuff Lenni Kuff
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: