This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-f5ee28c3-e485-4bb0-bc9c-612128a0aadf XWIKI-25248 Open

Stop the remote observation channels last when XWiki stops

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4d604545-01ab-4858-89bb-4fd2294e4175 Claude created this issue on 11/Oct/26 08:34
 
Summary: Stop the remote observation channels last when XWiki stops
Issue Type: cid:jira-generated-image-avatar-f5ee28c3-e485-4bb0-bc9c-612128a0aadf Improvement
Affects Versions: 18.8.0
Assignee: Unassigned
Components: Mail, Observation
Created: 11/Oct/26 08:34
Priority: cid:jira-generated-image-static-major-aad02df9-3c86-4f19-b65b-bf25508d5d6e Major
Reporter: Claude
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.