HBASE-25898 RS getting aborted due to NPE in Replication WALEntryStream (#3292)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Rushabh Shah <shahrs87@gmail.com>
This commit is contained in:
Anoop Sam John 2021-05-24 23:41:45 +05:30
parent 76d56bc42e
commit 1649013b99
1 changed files with 2 additions and 2 deletions

View File

@ -373,8 +373,8 @@ class WALEntryStream implements Closeable {
handleFileNotFound(path, (FileNotFoundException)ioe); handleFileNotFound(path, (FileNotFoundException)ioe);
} catch (LeaseNotRecoveredException lnre) { } catch (LeaseNotRecoveredException lnre) {
// HBASE-15019 the WAL was not closed due to some hiccup. // HBASE-15019 the WAL was not closed due to some hiccup.
LOG.warn("Try to recover the WAL lease " + currentPath, lnre); LOG.warn("Try to recover the WAL lease " + path, lnre);
recoverLease(conf, currentPath); recoverLease(conf, path);
reader = null; reader = null;
} catch (NullPointerException npe) { } catch (NullPointerException npe) {
// Workaround for race condition in HDFS-4380 // Workaround for race condition in HDFS-4380