Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3399 BookKeeper option support for NN HA
  3. HDFS-4445

All BKJM ledgers are not checked while tailing, So failover will fail.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: None
    • Labels:
      None

      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

        1. HDFS-4445.patch
          5 kB
          Vinayakumar B

        Issue Links

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment