hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11139) BoundedPriorityBlockingQueue#poll() should check the return value from awaitNanos()
Date Fri, 16 May 2014 11:04:47 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13999365#comment-13999365
] 

Hudson commented on HBASE-11139:
--------------------------------

ABORTED: Integrated in HBase-TRUNK #5132 (See [https://builds.apache.org/job/HBase-TRUNK/5132/])
HBASE-11139 BoundedPriorityBlockingQueue#poll() should check the return value from awaitNanos()
(Shengzhe Yao) (mbertozzi: rev 1593854)
* /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/util/BoundedPriorityBlockingQueue.java
* /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestBoundedPriorityBlockingQueue.java


> 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
>            Assignee: Shengzhe Yao
>            Priority: Minor
>              Labels: noob
>             Fix For: 0.99.0
>
>         Attachments: HBASE-11139-v1.patch, HBASE-11139-v2.patch, HBASE-11139-v3.patch,
HBASE-11139-v4.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