hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r538314 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSNamesystem.java
Date Tue, 15 May 2007 20:52:48 GMT
Author: cutting
Date: Tue May 15 13:52:47 2007
New Revision: 538314

URL: http://svn.apache.org/viewvc?view=rev&rev=538314
Log:
HADOOP-1205.  Improve synchronization around HDFS block map.  Contributed by Hairong.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=538314&r1=538313&r2=538314
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Tue May 15 13:52:47 2007
@@ -392,6 +392,9 @@
 112. HADOOP-1345.  Fix HDFS to correctly retry another replica when a
      checksum error is encountered.  (Hairong Kuang via cutting)
 
+113. HADOOP-1205.  Improve synchronization around HDFS block map.
+     (Hairong Kuang via cutting)
+
 
 Release 0.12.3 - 2007-04-06
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?view=diff&rev=538314&r1=538313&r2=538314
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Tue May 15 13:52:47
2007
@@ -433,7 +433,7 @@
    * The client should choose one of the machines from the machineArray
    * at random.
    */
-  public Object[] open(String clientMachine, UTF8 src) {
+  synchronized public Object[] open(String clientMachine, UTF8 src) {
     Object results[] = null;
     Block blocks[] = dir.getFile(src);
     if (blocks != null) {



Mime
View raw message