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

Bookkeeper shutdown call from Bookie thread is not shutting down server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.2.2, 4.3.0
    • bookkeeper-server
    • 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

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: