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

Prevent incorrect NoSuchLedgerException for readLastConfirmed.

    XMLWordPrintableJSON

Details

    Description

      bookkeeper client treats NoSuchLedgerException as valid response when reading last confirmed. If NoSuchLedgerException is caused due to an empty directory in following cases, it is an incorrect response.

      1) A disk is replaced or ledger index is removed by a sloppy admin.
      2) A disk is not mounted when a bookie machine is restarted.

      We need a mechanism to prevent such incorrect responses.

      Ivan suggested to generate a instance key for each bookie and write it into the ledger directories. If a directory doesn't have the key, and other directories do, then it shouldn't start. This would also resolve the issue that someone starting a new bookie with the same IP as a bookie which has previously died.

      Attachments

        1. BOOKKEEPER-163.diff
          84 kB
          Ivan Kelly
        2. BOOKKEEPER-163.diff
          88 kB
          Ivan Kelly
        3. BOOKKEEPER-163.diff
          90 kB
          Ivan Kelly
        4. BOOKKEEPER-163.diff
          94 kB
          Ivan Kelly

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: