accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1188249 - /incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java
Date Mon, 24 Oct 2011 17:30:24 GMT
Author: ecn
Date: Mon Oct 24 17:30:24 2011
New Revision: 1188249

URL: http://svn.apache.org/viewvc?rev=1188249&view=rev
Log:
ACCUMULO-65: check the return code for the final rename when bringing a minor compaction file
online

Modified:
    incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java

Modified: incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java?rev=1188249&r1=1188248&r2=1188249&view=diff
==============================================================================
--- incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java
(original)
+++ incubator/accumulo/branches/1.3/src/server/src/main/java/org/apache/accumulo/server/tabletserver/Tablet.java
Mon Oct 24 17:30:24 2011
@@ -735,7 +735,9 @@ public class Tablet {
               fs.delete(newDatafilePath, true);
             }
             
-            fs.rename(new Path(tmpDatafile), newDatafilePath);
+            if (!fs.rename(new Path(tmpDatafile), newDatafilePath)) {
+              throw new IOException("rename fails");
+            }
           }
           break;
         } catch (IOException ioe) {



Mime
View raw message