cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1170257 - in /cassandra/branches/cassandra-1.0.0: conf/cassandra.yaml src/java/org/apache/cassandra/dht/BootStrapper.java src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java
Date Tue, 13 Sep 2011 17:29:56 GMT
Author: jbellis
Date: Tue Sep 13 17:29:56 2011
New Revision: 1170257

URL: http://svn.apache.org/viewvc?rev=1170257&view=rev
Log:
clarify "No other nodes seen!  Unable to bootstrap" error message
patch by jbellis; reviewed by slebresne for CASSANDRA-3191

Modified:
    cassandra/branches/cassandra-1.0.0/conf/cassandra.yaml
    cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/dht/BootStrapper.java
    cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java

Modified: cassandra/branches/cassandra-1.0.0/conf/cassandra.yaml
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0.0/conf/cassandra.yaml?rev=1170257&r1=1170256&r2=1170257&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0.0/conf/cassandra.yaml (original)
+++ cassandra/branches/cassandra-1.0.0/conf/cassandra.yaml Tue Sep 13 17:29:56 2011
@@ -84,8 +84,8 @@ saved_caches_directory: /var/lib/cassand
 commitlog_sync: periodic
 commitlog_sync_period_in_ms: 10000
 
-# any class that implements the SeedProvider interface and has a constructor that takes a
Map<String, String> of
-# parameters will do.
+# any class that implements the SeedProvider interface and has a
+# constructor that takes a Map<String, String> of parameters will do.
 seed_provider:
     # Addresses of hosts that are deemed contact points. 
     # Cassandra nodes use this list of hosts to find each other and learn

Modified: cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/dht/BootStrapper.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/dht/BootStrapper.java?rev=1170257&r1=1170256&r2=1170257&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/dht/BootStrapper.java
(original)
+++ cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/dht/BootStrapper.java
Tue Sep 13 17:29:56 2011
@@ -165,7 +165,12 @@ public class BootStrapper
         }
 
         if (endpoints.isEmpty())
-            throw new RuntimeException("No other nodes seen!  Unable to bootstrap");
+            throw new RuntimeException("No other nodes seen!  Unable to bootstrap."
+                                       + "If you intended to start a single-node cluster,
you should make sure "
+                                       + "your broadcast_address (or listen_address) is listed
as a seed.  "
+                                       + "Otherwise, you need to determine why the seed being
contacted "
+                                       + "has no knowledge of the rest of the cluster.  Usually,
this can be solved "
+                                       + "by giving all nodes the same seed list.");
         Collections.sort(endpoints, new Comparator<InetAddress>()
         {
             public int compare(InetAddress ia1, InetAddress ia2)

Modified: cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java?rev=1170257&r1=1170256&r2=1170257&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java
(original)
+++ cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/service/AbstractCassandraDaemon.java
Tue Sep 13 17:29:56 2011
@@ -346,15 +346,15 @@ public abstract class AbstractCassandraD
             }
             
             start();
-        } catch (Throwable e)
+        }
+        catch (Throwable e)
         {
-            String msg = "Exception encountered during startup.";
-            logger.error(msg, e);
+            logger.error("Exception encountered during startup", e);
             
             // try to warn user on stdout too, if we haven't already detached
-            System.out.println(msg);
             e.printStackTrace();
-            
+            System.out.println("Exception encountered during startup: " + e.getMessage());
+
             System.exit(3);
         }
     }



Mime
View raw message