Browse files

Include fatal errors in trace events

patch by jbellis; reviewed by aleksey for CASSANDRA-5447
  • Loading branch information...
1 parent fd588f6 commit 87b350ff777983cdd2f4136c5b649c8dfb11b685 @jbellis jbellis committed Apr 9, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 CHANGES.txt
  2. +2 −0 src/java/org/apache/cassandra/service/CassandraDaemon.java
View
4 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)
View
2 src/java/org/apache/cassandra/service/CassandraDaemon.java
@@ -41,6 +41,7 @@
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 void uncaughtException(Thread t, Throwable e)
{
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

0 comments on commit 87b350f

Please sign in to comment.