You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Shengzhe Yao (JIRA)" <ji...@apache.org> on 2014/05/10 23:59:26 UTC

[jira] [Updated] (HBASE-11139) BoundedPriorityBlockingQueue#poll() should check the return value from awaitNanos()

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

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

    Attachment: HBASE-11139-v1.patch

> 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)