cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject cassandra git commit: Apply gc_warn_threshold_in_ms to stat printing as well as warnings
Date Fri, 13 May 2016 16:16:42 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 0c09bc85c -> d473a2811


Apply gc_warn_threshold_in_ms to stat printing as well as warnings

Patch by jstack; reviewed by jmckenzie for CASSANDRA-11644


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

Branch: refs/heads/trunk
Commit: d473a2811e97e6f395e23f9c795fa1b4b1251788
Parents: 0c09bc8
Author: jasonstack <zhaoyangsingapore@gmail.com>
Authored: Fri May 13 12:14:42 2016 -0400
Committer: Josh McKenzie <jmckenzie@apache.org>
Committed: Fri May 13 12:14:42 2016 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/GCInspector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d473a281/src/java/org/apache/cassandra/service/GCInspector.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/GCInspector.java b/src/java/org/apache/cassandra/service/GCInspector.java
index f35d968..c423b8f 100644
--- a/src/java/org/apache/cassandra/service/GCInspector.java
+++ b/src/java/org/apache/cassandra/service/GCInspector.java
@@ -50,7 +50,7 @@ public class GCInspector implements NotificationListener, GCInspectorMXBean
     private static final Logger logger = LoggerFactory.getLogger(GCInspector.class);
     final static long MIN_LOG_DURATION = 200;
     final static long GC_WARN_THRESHOLD_IN_MS = DatabaseDescriptor.getGCWarnThreshold();
-    final static long STAT_THRESHOLD = Math.min(GC_WARN_THRESHOLD_IN_MS != 0 ? GC_WARN_THRESHOLD_IN_MS
: MIN_LOG_DURATION, MIN_LOG_DURATION);
+    final static long STAT_THRESHOLD = GC_WARN_THRESHOLD_IN_MS != 0 ? GC_WARN_THRESHOLD_IN_MS
: MIN_LOG_DURATION;
 
     /*
      * The field from java.nio.Bits that tracks the total number of allocated


Mime
View raw message