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

NullPointException at LedgerDescriptor#cmpMasterKey

    XMLWordPrintableJSON

Details

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

    Description

      the LedgerDescriptor will be created when it is missed in LedgerCache. NullPointException will be thrown out in the following case:

      1. The ledger descriptor is created and cached to LedgerCache because of a readEntry operation in bookie. The ledger descriptor was created without setting master key (we don't know master key in a read request)
      2. An addEntry is sent after 1 . since the ledger descriptor has been cached, so addEntry will use it to compare master key. then NullPointException is thrown out.

      Attachments

        1. BookieReadAfterBookieRestartTest.java
          4 kB
          Sijie Guo
        2. bookkeeper-50.patch
          13 kB
          Sijie Guo
        3. bookkeeper-50.patch
          0.6 kB
          xulei
        4. bookkeeper-50.patch_v2
          15 kB
          Sijie Guo
        5. bookkeeper-50.patch_v3
          16 kB
          Sijie Guo

        Issue Links

          Activity

            People

              ikelly Ivan Kelly
              leixu xulei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: