Orderly shutdown of MUC Service

Description

When Openfire is shut down, federated users that are in a MUC room don't get any notification (Local users don't get any either, apart from their connection being closed).

XEP-0045 describes a presence status code that notifies users of a MUC service shut down. We should send that.

akrherz voiced concerns that this could be resource intensive and/or postpone or prolong an orderly shutdown. Both concerns should be taken into account.

Environment

None

Activity

Show:

Guus der Kinderen January 6, 2016 at 8:26 PM

PR in https://github.com/igniterealtime/Openfire/pull/495

In order to prevent a prolonged shut down, this commit:

  • ensures that a shutdown routine is executed just once (instead of for each type of interface being shut down: module,component and listener)

  • the presence stanza that is sent is constructed using in-memory objects only (no database lookups)

  • all notification occur in a thread pool, which will concurrently process them, but will terminate forcibly after a certain amount of time.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created January 6, 2016 at 8:19 PM
Updated January 7, 2016 at 8:33 AM
Resolved January 7, 2016 at 8:33 AM

Flag notifications