HDFS-16557. BootstrapStandby failed because of checking Gap for inprogress EditLogInputStream
This commit is contained in:
parent
93a13202d7
commit
7a37d9572f
|
@ -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 " +
|
||||
|
|
Loading…
Reference in New Issue