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-15679) Assertion on wrong variable in TestReplicationThrottler#testThrottling
Date Wed, 20 Apr 2016 19:02:25 GMT

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

Hudson commented on HBASE-15679:
--------------------------------

SUCCESS: Integrated in HBase-1.3 #660 (See [https://builds.apache.org/job/HBase-1.3/660/])
HBASE-15679 Assertion on wrong variable in (tedyu: rev 387cbe1a5af2cc701ec0ebc79af618445371cb8e)
* hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationThrottler.java


> Assertion on wrong variable in TestReplicationThrottler#testThrottling
> ----------------------------------------------------------------------
>
>                 Key: HBASE-15679
>                 URL: https://issues.apache.org/jira/browse/HBASE-15679
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Minor
>             Fix For: 2.0.0, 1.3.0, 1.4.0
>
>         Attachments: 15679.v1.patch
>
>
> Sometimes TestReplicationThrottler#testThrottling failed with:
> {code}
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.hbase.replication.regionserver.TestReplicationThrottler.testThrottling(TestReplicationThrottler.java:75)
> {code}
> Looking closer, we can see that the wrong variable is used for the assertion:
> {code}
>     if (ticks2 != 10000 && ticks2 != 9999) {
>       assertTrue(ticks1 >= 7500 && ticks1 <=10000);
>     }
> {code}



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

Mime
View raw message