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-17431) Incorrect precheck condition in RoundRobinPool#get()
Date Fri, 06 Jan 2017 18:16:58 GMT

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

Hudson commented on HBASE-17431:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #2270 (See [https://builds.apache.org/job/HBase-Trunk_matrix/2270/])
HBASE-17431 Incorrect precheck condition in RoundRobinPool#get() (Jan (tedyu: rev 6d48eb06c9cd50259e3137eea8e3554d190f678d)
* (edit) hbase-client/src/main/java/org/apache/hadoop/hbase/util/PoolMap.java


> Incorrect precheck condition in RoundRobinPool#get()
> ----------------------------------------------------
>
>                 Key: HBASE-17431
>                 URL: https://issues.apache.org/jira/browse/HBASE-17431
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Jan Hentschel
>            Priority: Minor
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: HBASE-17431.master.001.patch, HBASE-17431.master.002.patch
>
>
> Here is related code:
> {code}
>     public R get() {
>       if (super.size() < maxSize) {
>         return null;
>       }
>       nextResource %= super.size();
> {code}
> Since super.size() is involved in modulo operation after the check, it seems the check
should compare against 0 instead of maxSize.
> Looks like a copy-paste error from put() method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message