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

Buddy Allocator memory accounting does not account for failed allocation attempts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • llap
    • None

    Description

      Allocation method on Buddy Allocator, does not release the reserved memory in case we failed to allocate the full sequence.
      Simple example:
      Assume We have an allocation request of 1kb.
      Will call reserver and reserve 1KB.
      Try to allocate will fail due to race condition.
      Try to discard will fail due to no space.
      At this point will exit without releasing the reserved memory.

      Attachments

        Activity

          People

            bslim Slim Bouguerra
            bslim Slim Bouguerra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: