hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shengzhe Yao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11139) BoundedPriorityBlockingQueue#poll() should check the return value from awaitNanos()
Date Sat, 10 May 2014 21:59:27 GMT

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

Shengzhe Yao updated HBASE-11139:
---------------------------------

    Affects Version/s: 0.99.0
               Status: Patch Available  (was: Open)

update nanos for every notEmpty.awaitNanos call in BoundedPriorityBlockingQueue#poll() to
respect given timeout.

> BoundedPriorityBlockingQueue#poll() should check the return value from awaitNanos()
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-11139
>                 URL: https://issues.apache.org/jira/browse/HBASE-11139
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.99.0
>            Reporter: Ted Yu
>            Priority: Minor
>              Labels: noob
>         Attachments: HBASE-11139-v1.patch
>
>
> nanos represents the timeout value.
> {code}
>       while (queue.size() == 0 && nanos > 0) {
>         notEmpty.awaitNanos(nanos);
>       }
> {code}
> The return value from awaitNanos() should be checked - otherwise we may wait for period
longer than the timeout value.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message