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

Two bookies could start at the same time to access bookie data.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: bookkeeper-server
    • Labels:
      None

      Description

      this issue is introduced in providing netty server for bookie.

      in BOOKKEEPER-294, we agreed on the start sequence of bookie:

      1) bind bookie port first (to avoid two processes running at the same host).
      2) start bookie (e.g initialize bookie storage and replaying journals)
      3) start nio server to accept incoming requests.

      but after refactoring for netty server, step 1) is combined to be executed in step 3), so two processes could have chance to run at the same time replaying journals. this is pretty bad.

      we need to change the code to stick on the sequence described above.

        Attachments

        1. BOOKKEEPER-638.diff
          5 kB
          Sijie Guo

          Activity

            People

            • Assignee:
              hustlmsp Sijie Guo
              Reporter:
              hustlmsp Sijie Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: