cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sn...@apache.org
Subject [03/15] cassandra git commit: Reduce amount of logging calls from ColumnFamilyStore.selectAndReference
Date Wed, 04 May 2016 16:48:14 GMT
Reduce amount of logging calls from ColumnFamilyStore.selectAndReference

patch by Robert Stupp; reviewed by Benjamin Lerer for CASSANDRA-11552


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

Branch: refs/heads/trunk
Commit: aacd4526309693233f7f41e966e06ffcc0edf4d0
Parents: 5202147
Author: Robert Stupp <snazy@snazy.de>
Authored: Wed May 4 18:44:08 2016 +0200
Committer: Robert Stupp <snazy@snazy.de>
Committed: Wed May 4 18:44:08 2016 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/ColumnFamilyStore.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/aacd4526/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
index edc3564..b64d5de 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
@@ -1941,8 +1941,8 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
                 for (SSTableReader reader : view.sstables)
                     if (reader.selfRef().globalCount() == 0)
                         released.add(reader);
-                logger.info("Spinning trying to capture released readers {}", released);
-                logger.info("Spinning trying to capture all readers {}", view.sstables);
+                NoSpamLogger.log(logger, NoSpamLogger.Level.WARN, 1, TimeUnit.SECONDS,
+                                 "Spinning trying to capture readers {}, released: {}, ",
view.sstables, released);
                 failingSince = System.nanoTime();
             }
         }


Mime
View raw message