You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2014/11/03 19:03:34 UTC
[jira] [Created] (HDFS-7325) Prevent thundering herd problem in
ByteArrayManager by using notify not notifyAll
Colin Patrick McCabe created HDFS-7325:
------------------------------------------
Summary: Prevent thundering herd problem in ByteArrayManager by using notify not notifyAll
Key: HDFS-7325
URL: https://issues.apache.org/jira/browse/HDFS-7325
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Colin Patrick McCabe
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)