cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r783388 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java
Date Wed, 10 Jun 2009 15:12:19 GMT
Author: jbellis
Date: Wed Jun 10 15:12:18 2009
New Revision: 783388

URL: http://svn.apache.org/viewvc?rev=783388&view=rev
Log:
system.exit on oome.  patch by jbellis; reviewed by Eric Evans for CASSANDRA-218

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java?rev=783388&r1=783387&r2=783388&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java Wed
Jun 10 15:12:18 2009
@@ -59,6 +59,10 @@
             public void uncaughtException(Thread t, Throwable e)
             {
                 logger.error("Fatal exception in thread " + t, e);
+                if (e instanceof OutOfMemoryError)
+                {
+                    System.exit(100);
+                }
             }
         });
         



Mime
View raw message