HDFS-16557. BootstrapStandby failed because of checking Gap for inprogress EditLogInputStream

This commit is contained in:
tom lee 2022-04-22 17:19:42 +08:00
parent 93a13202d7
commit 7a37d9572f
1 changed files with 1 additions and 1 deletions

View File

@ -1792,7 +1792,7 @@ public class FSEditLog implements LogsPurgeable {
EditLogInputStream elis = iter.next();
if (elis.getFirstTxId() > txId) break;
long next = elis.getLastTxId();
if (next == HdfsServerConstants.INVALID_TXID) {
if (next == HdfsServerConstants.INVALID_TXID || elis.isInProgress()) {
if (!inProgressOk) {
throw new RuntimeException("inProgressOk = false, but " +
"selectInputStreams returned an in-progress edit " +