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

Ledger recovery doesn't work correctly when recovery adds force changing ensembles.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.2.0, 4.2.1
    • 4.2.2, 4.3.0
    • bookkeeper-client
    • None

    Description

      currently read and write use same ledger metadata during ledger recovery, which is bad. since write will cause changing ensemble which modified ensembles map to introducing brand new bookies. those brand new bookies would mislead following recovery reads, cause recovery is proceeded in a wrong way.

      E.g.

      3 bookies, quorums size 2. A, B, C.

      read 0 from A, B.
      recovery add 0: A, B becomes slow. D, E are brought into the ensemble to replace A, B.
      so following recovery read would be proceed in ensemble (D, E, C), then we would lost all the entries added in A and B.

      this issue is similar as BOOKKEEPER-355.

      Attachments

        1. BOOKKEEPER-581.patch
          17 kB
          Sijie Guo
        2. BOOKKEEPER-581.branch4-2.diff
          15 kB
          Ivan Kelly

        Activity

          People

            hustlmsp Sijie Guo
            hustlmsp Sijie Guo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: