cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1034396 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java
Date Fri, 12 Nov 2010 13:26:46 GMT
Author: jbellis
Date: Fri Nov 12 13:26:46 2010
New Revision: 1034396

URL: http://svn.apache.org/viewvc?rev=1034396&view=rev
Log:
add debug logging of sorted replicas
patch by jbellis

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java?rev=1034396&r1=1034395&r2=1034396&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/StorageService.java
Fri Nov 12 13:26:46 2010
@@ -1450,6 +1450,8 @@ public class StorageService implements I
     {
         List<InetAddress> endpoints = getNaturalEndpoints(table, key);
         DatabaseDescriptor.getEndpointSnitch().sortByProximity(FBUtilities.getLocalAddress(),
endpoints);
+        if (logger_.isDebugEnabled())
+            logger_.debug("Sorted endpoints are " + StringUtils.join(endpoints, ","));
         for (InetAddress endpoint : endpoints)
         {
             if (FailureDetector.instance.isAlive(endpoint))



Mime
View raw message