Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D93B19897 for ; Tue, 19 Apr 2016 23:04:26 +0000 (UTC) Received: (qmail 37784 invoked by uid 500); 19 Apr 2016 23:04:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 37743 invoked by uid 500); 19 Apr 2016 23:04:25 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 37509 invoked by uid 99); 19 Apr 2016 23:04:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2016 23:04:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6F2842C14F7 for ; Tue, 19 Apr 2016 23:04:25 +0000 (UTC) Date: Tue, 19 Apr 2016 23:04:25 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-15679) Assertion on wrong variable in TestReplicationThrottler#testThrottling MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-15679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-15679: --------------------------- Attachment: 15679.v1.patch > 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 > 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)