Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-166

Bookie will not recover its journal if the length prefix of an entry is truncated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None
    • None

    Description

      Entries in the bookie's journal are written in the format <len><entry>

      If the bookie crashes while writing the length part, then the bookie will not be able to recover the journal.
      An unlikely situation to happen as this is only 1 int, but an issue none the less.

      There is a testcase in BOOKKEEPER-165 which will trigger this when enabled (BookieJournalTest#testTruncatedInLenJournal).

      Attachments

        1. BOOKKEEPER-166.diff
          0.8 kB
          Ivan Kelly

        Activity

          People

            ikelly Ivan Kelly
            ikelly Ivan Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: