Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7325

Prevent thundering herd problem in ByteArrayManager by using notify not notifyAll

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      Currently ByteArrayManager wakes all waiting threads whenever a byte array is released and count == limit. However, only one thread can proceed. With a large number of waiters, this will cause a thundering herd problem. (See http://en.wikipedia.org/wiki/Thundering_herd_problem.) We should avoid this by only waking a single thread.

        Attachments

        1. HDFS-7325.001.patch
          1 kB
          Colin McCabe

          Issue Links

            Activity

              People

              • Assignee:
                cmccabe Colin McCabe
                Reporter:
                cmccabe Colin McCabe
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: