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;
|
public static final long LEASE_SOFTLIMIT_PERIOD = 60 * 1000;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void recoverFileLease(final FileSystem fs, final Path p, Configuration conf)
|
public void recoverFileLease(final FileSystem fs, final Path p, Configuration conf)
|
||||||
throws IOException{
|
throws IOException{
|
||||||
if (!isAppendSupported(conf)) {
|
if (!isAppendSupported(conf)) {
|
||||||
|
@ -111,7 +112,9 @@ public class FSHDFSUtils extends FSUtils{
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
new InterruptedIOException().initCause(ex);
|
InterruptedIOException iioe = new InterruptedIOException();
|
||||||
|
iioe.initCause(ex);
|
||||||
|
throw iioe;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("Finished lease recover attempt for " + p);
|
LOG.info("Finished lease recover attempt for " + p);
|
||||||
|
|
Loading…
Reference in New Issue