Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4027 Enable direct byte buffers LruBlockCache
  3. HBASE-4278

Race condition in Slab.java that occurs due to spinlock unlocking early

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • None
    • None

    Description

      Just a race condition in 4027. Occurs due to a spinlock that happens if the slab allocator is empty. When the slab allocator gets gets a slice of memory returned, if multiple threads are locked, both can be freed at the same time, leading one to throw an exception.

      Attachments

        1. 4278.diff
          10 kB
          Li Pi
        2. 4278.diff
          0.8 kB
          Li Pi

        Activity

          People

            li Li Pi
            li Li Pi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: