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);
} catch (LeaseNotRecoveredException lnre) {
// HBASE-15019 the WAL was not closed due to some hiccup.
LOG.warn("Try to recover the WAL lease " + currentPath, lnre);
recoverLease(conf, currentPath);
LOG.warn("Try to recover the WAL lease " + path, lnre);
recoverLease(conf, path);
reader = null;
} catch (NullPointerException npe) {
// Workaround for race condition in HDFS-4380