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

cleanup issues in LLAP IO after cache OOM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      LLAP IO creates unallocated buffer objects inside the read-related data structures, then allocates them in bulk, then decompresses into them and increfs them.
      If allocate or decompress steps fail, it's hard for the higher-level cleanup to tell what the state of the buffers in the read-related structures is - they may be unallocated, allocated but not incref-ed, or incref-ed.
      Some cleanup paths only deal with the latter case, resulting in bugs.
      Moreover, currently allocator returns partial results on such error. The allocation should be all-or-nothing.

      This only happens on one path, others allocate and use buffers in a single place.

      Attachments

        1. HIVE-20247.01.patch
          11 kB
          Sergey Shelukhin
        2. HIVE-20247.patch
          9 kB
          Sergey Shelukhin

        Issue Links

          Activity

            People

              sershe Sergey Shelukhin
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: