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

Fix gradual mem leak: Operationlog related appenders should be cleared up on errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • HiveServer2
    • None

    Description

      In case of exception in SQLOperation, operational log does not get cleared up. This causes gradual build up of HushableRandomAccessFileAppender causing HS2 to OOM after some time.

       

      Allocation tree

       

      Prod instance mem

       

      Each HushableRandomAccessFileAppender holds internal ref to RandomAccessFileAppender which holds a 256 KB bytebuffer, causing the mem leak.

      Related ticket: HIVE-18820

      Attachments

        1. image-2020-01-21-11-18-37-294.png
          600 kB
          Rajesh Balamohan
        2. image-2020-01-21-11-17-59-279.png
          396 kB
          Rajesh Balamohan
        3. image-2020-01-21-11-14-37-911.png
          776 kB
          Rajesh Balamohan
        4. HIVE-22753.4.patch
          3 kB
          Rajesh Balamohan
        5. HIVE-22753.3.patch
          3 kB
          Rajesh Balamohan
        6. HIVE-22753.2.patch
          3 kB
          Rajesh Balamohan
        7. HIVE-22753.1.patch
          0.7 kB
          Rajesh Balamohan

        Issue Links

          Activity

            People

              rajesh.balamohan Rajesh Balamohan
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: