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

bookies should not retain ledgers which no longer belong to them

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.4.0
    • Component/s: bookkeeper-server
    • Labels:
      None

      Description

      The bookies do not clean up ledgers on their disk which exist in zookeeper but are not assigned to them by the ensemble definition. This happens if a bookie has a ledger, went offline, it was replicated elsewhere, and then the bookie comes back up. Then we have an extra copy of the same ledger.

      Solution:
      Bookie should handle this case in the garbage collector. Since we will have to read the ledger metadata and go through its ensemble set to determine if the bookie exists in the ensemble, this is an expensive operation. Thus, we will only run this task once every day.

        Attachments

          Activity

            People

            • Assignee:
              sboobna Siddharth Boobna
              Reporter:
              sboobna Siddharth Boobna
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: