You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2009/03/27 03:19:56 UTC

svn commit: r758981 - in /incubator/cassandra/trunk/src/org/apache/cassandra: service/StorageService.java test/DBTest.java

Author: jbellis
Date: Fri Mar 27 02:19:56 2009
New Revision: 758981

URL: http://svn.apache.org/viewvc?rev=758981&view=rev
Log:
cleanup unused code

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

Modified: incubator/cassandra/trunk/src/org/apache/cassandra/service/StorageService.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/service/StorageService.java?rev=758981&r1=758980&r2=758981&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/service/StorageService.java (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/service/StorageService.java Fri Mar 27 02:19:56 2009
@@ -500,23 +500,6 @@
         Gossiper.instance().addApplicationState(StorageService.nodeId_, new ApplicationState(storageMetadata_.getStorageId().toString()));
     }
 
-    private void startMapReduceFramework()
-    {
-        // TODO: This is a null pointer exception if JobTrackerHost is not in
-        // the config file. Also, shouldn't this comparison be done by IP
-        // instead of host name?  We could have a match but not a textual
-        // match (e.g. somehost.vip vs somehost.vip.domain.com)
-        if ( DatabaseDescriptor.getJobTrackerAddress().equals( StorageService.tcpAddr_.getHost() ) ) 
-        {
-//            JobTracker.instance().start();
-//            TaskTracker.instance().start();
-        }
-        else
-        {
-//            TaskTracker.instance().start();
-        }
-    }
-    
     public void killMe() throws Throwable
     {
         isShutdown_.set(true);

Modified: incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java?rev=758981&r1=758980&r2=758981&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java (original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/test/DBTest.java Fri Mar 27 02:19:56 2009
@@ -109,7 +109,7 @@
             System.out.println(scanner.next().name());
         }             
     }
-    
+
     public static void doTest()
     {
         String host = "insearch00";