Details
-
Sub-task
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.3-alpha
-
None
-
None
-
Reviewed
Description
After the fix of HDFS-4130, all editlog nodes are not iterated if first edit are below fromTxId
Problem part is below code inside BookKeeperJournalManager#selectInputStreams(..)
if (fromTxId >= l.getFirstTxId() && fromTxId <= lastTxId) { LedgerHandle h; if (l.isInProgress()) { // we don't want to fence the current journal h = bkc.openLedgerNoRecovery(l.getLedgerId(), digestType, digestpw.getBytes()); } else { h = bkc .openLedger(l.getLedgerId(), digestType, digestpw.getBytes()); } elis = new BookKeeperEditLogInputStream(h, l); elis.skipTo(fromTxId); } else { return; }
The else block should have continue statement instead of return.
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-4130 BKJM: The reading for editlog at NN starting using bkjm is not efficient
- Closed