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

Bookkeeper shutdown call from Bookie thread is not shutting down server

    XMLWordPrintableJSON

    Details

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

      Description

      shutdown(..) call from inside Bookie#run() is not shutting down the server.

      Bookie thread is waiting to join itself.

      Shutdown called from here

       if (!shuttingdown) {
                  // some error found in journal thread and it quits
                  // following add operations to it would hang unit client timeout
                  // so we should let bookie server exists
                  LOG.error("Journal manager quits unexpectedly.");
                  shutdown(ExitCode.BOOKIE_EXCEPTION);
              }

      bookie thread is waiting at this.join() in below code

      // Shutdown the ZK client
                      if(zk != null) zk.close();
                      // Shutdown journal
                      journal.shutdown();
                      this.join();
                      syncThread.shutdown();
      
                      // close Ledger Manager

        Attachments

        1. BOOKKEEPER-313-branch-4.2.patch
          3 kB
          Vinayakumar B
        2. BOOKKEEPER-313-branch-4.2.patch
          6 kB
          Vinayakumar B

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: