hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/5] git commit: Fix failures caused by Jacoco syncthetic methods
Date Wed, 08 Oct 2014 19:10:35 GMT
Fix failures caused by Jacoco syncthetic methods

Signed-off-by: Andrew Purtell <apurtell@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e31286bf
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e31286bf
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e31286bf

Branch: refs/heads/master
Commit: e31286bf621273bb8e484f95b1a94fff15df034c
Parents: e952e73
Author: manukranthk <manukranthk@fb.com>
Authored: Wed Oct 8 10:36:02 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Oct 8 12:05:14 2014 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e31286bf/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java
index 7f8069a..b9614b4 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java
@@ -88,7 +88,7 @@ public class SplitLogCounters {
   public static void resetCounters() throws Exception {
     Class<?> cl = (new SplitLogCounters()).getClass();
     for (Field fld : cl.getDeclaredFields()) {
-      ((AtomicLong)fld.get(null)).set(0);
+      if (!fld.isSynthetic()) ((AtomicLong)fld.get(null)).set(0);
     }
   }
 }


Mime
View raw message