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

bookie hangs on reading header when encountering partial header index file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.1.0
    • bookkeeper-server
    • None

    Description

      bookie server hangs on reading header part when reading partial header index file (whose header part is less than 1k). This kind of index file existed because bookie server shuts down when writing header of index file.

      bookie server should check file size when reading header. in pre-v3 journal, we don't have master key stored in journal, so if master key is missing, we have no chance to repair it just throw an IOException when reading header. in post-v3 journal, we store master key as an meta entry in journal, so we can rewrite the header part.

      Attachments

        1. BK-169.diff
          12 kB
          Sijie Guo
        2. BK-169.diff_v2
          10 kB
          Sijie Guo

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: