Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 06CFC200B78 for ; Fri, 2 Sep 2016 21:44:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0583C160ACC; Fri, 2 Sep 2016 19:44:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55BB1160A8C for ; Fri, 2 Sep 2016 21:44:46 +0200 (CEST) Received: (qmail 37133 invoked by uid 500); 2 Sep 2016 19:44:45 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 37111 invoked by uid 99); 2 Sep 2016 19:44:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 19:44:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5AF5CE02D4; Fri, 2 Sep 2016 19:44:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@accumulo.apache.org Date: Fri, 02 Sep 2016 19:44:46 -0000 Message-Id: <9a066fbf08e04763aea825bf23fd5e54@git.apache.org> In-Reply-To: <00159df422b04de3a1aa6e279a8b177d@git.apache.org> References: <00159df422b04de3a1aa6e279a8b177d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] accumulo git commit: ACCUMULO-4447 Fix assertion message for 80% of expected max compaction rate archived-at: Fri, 02 Sep 2016 19:44:47 -0000 ACCUMULO-4447 Fix assertion message for 80% of expected max compaction rate Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/fbcaa902 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/fbcaa902 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/fbcaa902 Branch: refs/heads/master Commit: fbcaa90270ec70966e3571ff455f4f3f5e06110a Parents: be5c433 Author: Josh Elser Authored: Fri Sep 2 14:05:41 2016 -0400 Committer: Josh Elser Committed: Fri Sep 2 15:44:06 2016 -0400 ---------------------------------------------------------------------- .../java/org/apache/accumulo/test/CompactionRateLimitingIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/fbcaa902/test/src/main/java/org/apache/accumulo/test/CompactionRateLimitingIT.java ---------------------------------------------------------------------- diff --git a/test/src/main/java/org/apache/accumulo/test/CompactionRateLimitingIT.java b/test/src/main/java/org/apache/accumulo/test/CompactionRateLimitingIT.java index 3b218e2..91ed2de 100644 --- a/test/src/main/java/org/apache/accumulo/test/CompactionRateLimitingIT.java +++ b/test/src/main/java/org/apache/accumulo/test/CompactionRateLimitingIT.java @@ -76,7 +76,7 @@ public class CompactionRateLimitingIT extends ConfigurableMacBase { long duration = System.currentTimeMillis() - compactionStart; // The rate will be "bursty", try to account for that by taking 80% of the expected rate (allow for 20% under the maximum expected duration) Assert.assertTrue( - String.format("Expected a compaction rate of no more than %,d bytes/sec, but saw a rate of %,f bytes/sec", RATE, 1000.0 * bytesWritten / duration), - duration > 1000L * 0.8 * BYTES_TO_WRITE / RATE); + String.format("Expected a compaction rate of no more than %,d bytes/sec, but saw a rate of %,f bytes/sec", (int) 0.8d * RATE, 1000.0 * bytesWritten + / duration), duration > 1000L * 0.8 * BYTES_TO_WRITE / RATE); } }