hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r410910 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java
Date Thu, 01 Jun 2006 18:57:28 GMT
Author: cutting
Date: Thu Jun  1 11:57:27 2006
New Revision: 410910

URL: http://svn.apache.org/viewvc?rev=410910&view=rev
Log:
HADOOP-264.  Workaround a problem with WritableFactories.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java?rev=410910&r1=410909&r2=410910&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/NameNode.java Thu Jun  1 11:57:27 2006
@@ -67,6 +67,11 @@
     
     /** only used for testing purposes  */
     private boolean stopRequested = false;
+    // force loading of classes that will be received via RPC
+    // creating an instance will do the static initialization of the class
+    static {
+      new DatanodeRegistration();
+    }
 
     /** Format a new filesystem.  Destroys any filesystem that may already
      * exist at this location.  **/



Mime
View raw message