accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject git commit: ACCUMULO-2480 Remove unnecessary curly brackets from variable initialization
Date Wed, 01 Oct 2014 22:27:39 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 2b689a2f6 -> ef7c4f083


ACCUMULO-2480 Remove unnecessary curly brackets from variable initialization


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

Branch: refs/heads/master
Commit: ef7c4f0836abc9ea4fea664e0118c7ae2fdf4c30
Parents: 2b689a2
Author: Josh Elser <elserj@apache.org>
Authored: Wed Oct 1 18:22:50 2014 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Wed Oct 1 18:27:05 2014 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/tserver/log/TabletServerLogger.java  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ef7c4f08/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
----------------------------------------------------------------------
diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
index 86ae596..91ec141 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
@@ -93,12 +93,8 @@ public class TabletServerLogger {
   private final AtomicLong flushCounter;
   
   private final static int HALT_AFTER_ERROR_COUNT = 5;
-  private final Cache<Long, Object> walErrors;
-  {
-    // Die if we get 5 WAL creation errors in 10 seconds
-    walErrors = CacheBuilder.newBuilder().maximumSize(HALT_AFTER_ERROR_COUNT).expireAfterWrite(10,
TimeUnit.SECONDS).build();
-  }
-
+  // Die if we get 5 WAL creation errors in 10 seconds
+  private final Cache<Long,Object> walErrors = CacheBuilder.newBuilder().maximumSize(HALT_AFTER_ERROR_COUNT).expireAfterWrite(10,
TimeUnit.SECONDS).build();
 
   static private abstract class TestCallWithWriteLock {
     abstract boolean test();


Mime
View raw message