cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [2/5] git commit: Include fatal errors in trace events patch by jbellis; reviewed by aleksey for CASSANDRA-5447
Date Tue, 09 Apr 2013 21:55:17 GMT
Include fatal errors in trace events
patch by jbellis; reviewed by aleksey for CASSANDRA-5447


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

Branch: refs/heads/trunk
Commit: 87b350ff777983cdd2f4136c5b649c8dfb11b685
Parents: fd588f6
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue Apr 9 14:09:26 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Tue Apr 9 14:10:20 2013 -0500

----------------------------------------------------------------------
 CHANGES.txt                                        |    4 ++++
 .../apache/cassandra/service/CassandraDaemon.java  |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/87b350ff/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 76e5853..0bbc133 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,7 @@
+1.2.5
+ * Include fatal errors in trace events (CASSANDRA-5447)
+
+
 1.2.4
  * Ensure that PerRowSecondaryIndex updates see the most recent values
    (CASSANDRA-5397)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/87b350ff/src/java/org/apache/cassandra/service/CassandraDaemon.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/CassandraDaemon.java b/src/java/org/apache/cassandra/service/CassandraDaemon.java
index 1eae488..40c453d 100644
--- a/src/java/org/apache/cassandra/service/CassandraDaemon.java
+++ b/src/java/org/apache/cassandra/service/CassandraDaemon.java
@@ -41,6 +41,7 @@ import org.apache.cassandra.db.compaction.CompactionManager;
 import org.apache.cassandra.io.FSError;
 import org.apache.cassandra.io.util.FileUtils;
 import org.apache.cassandra.thrift.ThriftServer;
+import org.apache.cassandra.tracing.Tracing;
 import org.apache.cassandra.utils.CLibrary;
 import org.apache.cassandra.utils.Mx4jTool;
 
@@ -172,6 +173,7 @@ public class CassandraDaemon
             {
                 exceptions.incrementAndGet();
                 logger.error("Exception in thread " + t, e);
+                Tracing.trace("Exception in thread " + t, e);
                 for (Throwable e2 = e; e2 != null; e2 = e2.getCause())
                 {
                     // some code, like FileChannel.map, will wrap an OutOfMemoryError in
another exception


Mime
View raw message