Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 687EF184B3 for ; Tue, 2 Feb 2016 15:39:39 +0000 (UTC) Received: (qmail 30874 invoked by uid 500); 2 Feb 2016 15:39:39 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 30838 invoked by uid 500); 2 Feb 2016 15:39:39 -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 30829 invoked by uid 99); 2 Feb 2016 15:39:39 -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; Tue, 02 Feb 2016 15:39:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2B2C5DFCDD; Tue, 2 Feb 2016 15:39:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ecn@apache.org To: commits@accumulo.apache.org Message-Id: <5ffc9708334a47eaaf43c2505919f3cc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: accumulo git commit: ACCUMULO-4123 increment the counters properly Date: Tue, 2 Feb 2016 15:39:39 +0000 (UTC) Repository: accumulo Updated Branches: refs/heads/master f1523abd5 -> 24ee37f90 ACCUMULO-4123 increment the counters properly Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/24ee37f9 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/24ee37f9 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/24ee37f9 Branch: refs/heads/master Commit: 24ee37f90417b88f791c1d3b395cc8ad479e01ba Parents: f1523ab Author: Eric C. Newton Authored: Tue Feb 2 10:39:29 2016 -0500 Committer: Eric C. Newton Committed: Tue Feb 2 10:39:29 2016 -0500 ---------------------------------------------------------------------- .../apache/accumulo/test/mrit/IntegrationTestMapReduce.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/24ee37f9/test/src/main/java/org/apache/accumulo/test/mrit/IntegrationTestMapReduce.java ---------------------------------------------------------------------- diff --git a/test/src/main/java/org/apache/accumulo/test/mrit/IntegrationTestMapReduce.java b/test/src/main/java/org/apache/accumulo/test/mrit/IntegrationTestMapReduce.java index 62b82c9..ee8d7b3 100644 --- a/test/src/main/java/org/apache/accumulo/test/mrit/IntegrationTestMapReduce.java +++ b/test/src/main/java/org/apache/accumulo/test/mrit/IntegrationTestMapReduce.java @@ -103,7 +103,7 @@ public class IntegrationTestMapReduce extends Configured implements Tool { test = Class.forName(className); } catch (ClassNotFoundException e) { log.debug("Error finding class {}", className, e); - context.getCounter(TestCounts.ERROR); + context.getCounter(TestCounts.ERROR).increment(1); context.write(ERROR, new Text(e.toString())); return; } @@ -136,11 +136,11 @@ public class IntegrationTestMapReduce extends Configured implements Tool { Result result = core.run(test); if (result.wasSuccessful()) { log.info("{} was successful", className); - context.getCounter(TestCounts.PASS); + context.getCounter(TestCounts.PASS).increment(1); context.write(PASS, value); } else { log.info("{} failed", className); - context.getCounter(TestCounts.FAIL); + context.getCounter(TestCounts.FAIL).increment(1); context.write(FAIL, new Text(className + "(" + StringUtils.join(failures, ", ") + ")")); } } catch (Exception e) {