Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25248

Stop the remote observation channels last when XWiki stops

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 18.8.0
    • Mail, Observation
    • None
    • Unknown

    Description

      DefaultRemoteObservationManager closes the JGroups channels as soon as ApplicationStoppedEvent is fired, before the component manager disposes anything. Every remote event produced during the rest of the shutdown (cache invalidations, job events) is lost for the other nodes.

      Proposal: close the channels in JGroupsNetworkAdapter.dispose() with a dispose priority after the default components but before the stores, and drop incoming remote events while stopping. Also give the mail sender threads' join() a timeout so a stuck SMTP send cannot block the shutdown.

      Attachments

        Issue Links

          Activity

            People

              ciaens Clément Christiaens
              ciaens Clément Christiaens
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: