kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guozh...@apache.org
Subject kafka git commit: MINOR: remove unused hitRatio field in NamedCache
Date Wed, 21 Jun 2017 00:39:00 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk cb3952a4f -> 84de7f175


MINOR: remove unused hitRatio field in NamedCache

Author: Damian Guy <damian.guy@gmail.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #3384 from dguy/remove-unused-field


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

Branch: refs/heads/trunk
Commit: 84de7f1756d34e6890c2608a699701d659fa191a
Parents: cb3952a
Author: Damian Guy <damian.guy@gmail.com>
Authored: Tue Jun 20 17:38:56 2017 -0700
Committer: Guozhang Wang <wangguoz@gmail.com>
Committed: Tue Jun 20 17:38:56 2017 -0700

----------------------------------------------------------------------
 .../org/apache/kafka/streams/state/internals/NamedCache.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/84de7f17/streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java
----------------------------------------------------------------------
diff --git a/streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java
b/streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java
index 6ea32a9..be8e434 100644
--- a/streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java
+++ b/streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java
@@ -47,10 +47,7 @@ class NamedCache {
     private LRUNode head;
     private long currentSizeBytes;
     private NamedCacheMetrics namedCacheMetrics;
-    // JMX stats
-    private Sensor hitRatio = null;
-
-
+    
     // internal stats
     private long numReadHits = 0;
     private long numReadMisses = 0;


Mime
View raw message