hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14912) FairCallQueue may defer servicing calls
Date Fri, 29 Sep 2017 15:27:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jason Lowe updated HADOOP-14912:
    Affects Version/s: 2.9.0
     Target Version/s: 2.9.0, 2.8.3, 3.0.0  (was: 2.8.3)

Thanks for the report and patch!  The unit tests appear to be unrelated.

Nit: The following code is now dead and should be removed:
    // guaranteed to find an element if caller acquired permit.
    assert e != null : "consumer didn't acquire semaphore!";

> FairCallQueue may defer servicing calls
> ---------------------------------------
>                 Key: HADOOP-14912
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14912
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc
>    Affects Versions: 2.9.0, 3.0.0-alpha4, 2.8.2
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: HADOOP-14912.patch
> HADOOP-14033 switched a lock to a semaphore to allow concurrency for producers &
consumers to the underlying queues.  A race condition was created that may cause a consumer
to acquire a permit but not extract an element, leaving the semaphore with fewer permits than
queued elements.  This causes a minimum number of calls to always be present in the call queue.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message