cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From goffi...@apache.org
Subject svn commit: r1129049 - /cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
Date Mon, 30 May 2011 08:23:27 GMT
Author: goffinet
Date: Mon May 30 08:23:26 2011
New Revision: 1129049

URL: http://svn.apache.org/viewvc?rev=1129049&view=rev
Log:
Don't throw exception if daemon isn't running, just return false for isRPCServerRunning()
patch by goffinet; reviewed by slebresne for CASSANDRA-2721

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java?rev=1129049&r1=1129048&r2=1129049&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java Mon May 30 08:23:26
2011
@@ -318,7 +318,7 @@ public class StorageService implements I
     {
         if (daemon == null)
         {
-            throw new IllegalStateException("No configured RPC daemon");
+            return false;
         }
         return daemon.isRPCServerRunning();
     }



Mime
View raw message