HBASE-6328 FSHDFSUtils#recoverFileLease tries to rethrow InterruptedException but actually shallows it
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1357535 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af21a030c0
commit
e98ec7e447
|
@ -55,6 +55,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);
|
||||
|
|
Loading…
Reference in New Issue