Parcourir la source

HADOOP-669. Fix a problem introduced by HADOOP-90 that could cause DFS to lose files. Contributed by Milind.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@470096 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting il y a 18 ans
Parent
commit
c8139b1f5e
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/dfs/FSImage.java

+ 3 - 0
CHANGES.txt

@@ -124,6 +124,9 @@ Trunk (unreleased changes)
     places and add more informative thread names.
     (omalley via cutting)
 
+35. HADOOP-669.  Fix a problem introduced by HADOOP-90 that can cause
+    DFS to lose files.  (Milind Bhandarkar via cutting)
+
 
 Release 0.7.2 - 2006-10-18
 

+ 1 - 1
src/java/org/apache/hadoop/dfs/FSImage.java

@@ -105,7 +105,7 @@ class FSImage {
     
     // Now check all curFiles and see which is the newest
     File curFile = null;
-    long maxTimeStamp = 0;
+    long maxTimeStamp = Long.MIN_VALUE;
     for (int idx = 0; idx < imageDirs.length; idx++) {
       File file = new File(imageDirs[idx], FS_IMAGE);
       if (file.exists()) {