cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdusba...@apache.org
Subject svn commit: r907064 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
Date Fri, 05 Feb 2010 19:26:42 GMT
Author: gdusbabek
Date: Fri Feb  5 19:26:42 2010
New Revision: 907064

URL: http://svn.apache.org/viewvc?rev=907064&view=rev
Log:
emit a message if an unbootstrapped autobootstrap node is configured as a seed. Patch by Gary
Dusbabek, reviewed by Brandon Williams. CASSANDRA-746

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

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java?rev=907064&r1=907063&r2=907064&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/service/StorageService.java Fri
Feb  5 19:26:42 2010
@@ -299,6 +299,11 @@
         Gossiper.instance.start(FBUtilities.getLocalAddress(), storageMetadata_.getGeneration());
// needed for node-ring gathering.
 
         if (DatabaseDescriptor.isAutoBootstrap()
+                && DatabaseDescriptor.getSeeds().contains(FBUtilities.getLocalAddress())
+                && !SystemTable.isBootstrapped())
+            logger_.info("This node will not auto bootstrap because it is configured to be
a seed node.");
+
+        if (DatabaseDescriptor.isAutoBootstrap()
             && !(DatabaseDescriptor.getSeeds().contains(FBUtilities.getLocalAddress())
|| SystemTable.isBootstrapped()))
         {
             logger_.info("Starting in bootstrap mode (first, sleeping to get load information)");



Mime
View raw message