hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkey...@apache.org
Subject svn commit: r1357539 - /hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java
Date Thu, 05 Jul 2012 10:33:47 GMT
Author: nkeywal
Date: Thu Jul  5 10:33:47 2012
New Revision: 1357539

URL: http://svn.apache.org/viewvc?rev=1357539&view=rev
Log:
HBASE-6328 FSHDFSUtils#recoverFileLease tries to rethrow InterruptedException but actually
shallows it

Modified:
    hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java?rev=1357539&r1=1357538&r2=1357539&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java (original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSHDFSUtils.java Thu Jul
 5 10:33:47 2012
@@ -51,6 +51,7 @@ public class FSHDFSUtils extends FSUtils
    */
   public static final long LEASE_SOFTLIMIT_PERIOD = 60 * 1000;
 
+  @Override
   public void recoverFileLease(final FileSystem fs, final Path p, Configuration conf)
   throws IOException{
     if (!isAppendSupported(conf)) {
@@ -111,7 +112,9 @@ public class FSHDFSUtils extends FSUtils
       try {
         Thread.sleep(1000);
       } catch (InterruptedException ex) {
-        new InterruptedIOException().initCause(ex);
+        InterruptedIOException iioe = new InterruptedIOException();
+        iioe.initCause(ex);
+        throw iioe;
       }
     }
     LOG.info("Finished lease recover attempt for " + p);



Mime
View raw message