Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2622

Closing ApplicationRegistry components can NPE and prevent others cleanly shutting down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • 0.5, 0.6
    • JIRA Cleanup
    • Broker-J, Java Tests
    • None

    Description

      The ApplicationRegistry has a close() method that peforms close() on a number of broker components.

      However, it currently has a rather ugly structure:
      try : close finally : try : close : finally ....

      Also the items that are being closed need to be null tested in case there was an error during broker startup.

      Refactor all the close methods so that they do not throw Exceptions as there is nothing we can do but report it during shutdown.

      This is particularly annoying as QpidTestCase runs will fail and hide the true cause of the failure.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: