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

Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Rushabh Shah <shahrs87@gmail.com>
Signed-off-by: Aman Poonia <aman.poonia.29@gmail.com>
This commit is contained in:
Anoop Sam John 2021-05-26 14:31:17 +05:30 committed by GitHub
parent 130d6a1f15
commit 3f8aa4c7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -356,8 +356,8 @@ public class WALEntryStream implements Iterator<Entry>, Closeable, Iterable<Entr
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