Karaf
  1. Karaf
  2. KARAF-1763

shutdown command doesn't work correctly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: karaf-shell
    • Labels:
      None

      Description

      The shutdown command doesn't stop Karaf. It seems that it stops the console (commands are not available anymore like a simple osgi:list), but not the Karaf main progress.

      I know that we changed the behavior of the console to be less coupled to the Karaf main process, it's probably related.

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        shutdown -f works now.

        Show
        Jean-Baptiste Onofré added a comment - shutdown -f works now.
        Hide
        Jean-Baptiste Onofré added a comment -

        Thanks for the update Scott. I gonna work on this issue.

        Show
        Jean-Baptiste Onofré added a comment - Thanks for the update Scott. I gonna work on this issue.
        Hide
        Scott England-Sullivan added a comment -

        Additional note:

        CTRL-D is usable as a work-around until this is resolved. Even if you have issued a shutdown -f or shutdown yes and the console commands have been removed this will still allow you to exit.

        Thanks,
        Scott ES

        Show
        Scott England-Sullivan added a comment - Additional note: CTRL-D is usable as a work-around until this is resolved. Even if you have issued a shutdown -f or shutdown yes and the console commands have been removed this will still allow you to exit. Thanks, Scott ES
        Hide
        Scott England-Sullivan added a comment -

        Attaching thread dump showing BLOCKED BlueprintContainerImpl.destroy()

        Show
        Scott England-Sullivan added a comment - Attaching thread dump showing BLOCKED BlueprintContainerImpl.destroy()
        Hide
        Scott England-Sullivan added a comment -

        Hi JB,

        Notes from the Latest karaf-2.3.x Hangs on Shutdown thread on the Developer mailing list.

        This issue appears to be a bug in Aries Blueprint and is fixed as part of ARIES-867. In this case the deadlock will occur due to the org.apache.karaf.shell.console.jline.Console line 387 (queue.take()) blocking the BlueprintContainerImpl.destroy() attempt to destroy the thread without first interrupting it.

        I will attach the thread dump for reference.

        Best Regards,
        Scott ES

        Show
        Scott England-Sullivan added a comment - Hi JB, Notes from the Latest karaf-2.3.x Hangs on Shutdown thread on the Developer mailing list. This issue appears to be a bug in Aries Blueprint and is fixed as part of ARIES-867 . In this case the deadlock will occur due to the org.apache.karaf.shell.console.jline.Console line 387 (queue.take()) blocking the BlueprintContainerImpl.destroy() attempt to destroy the thread without first interrupting it. I will attach the thread dump for reference. Best Regards, Scott ES

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Jean-Baptiste Onofré
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development