You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/04/20 01:03:25 UTC

[jira] [Created] (HBASE-15679) Assertion on wrong variable in TestReplicationThrottler#testThrottling

Ted Yu created HBASE-15679:
------------------------------

             Summary: 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


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)