MUC service should flush recent history before shutting down

Description

When Log Room Conversation is enabled for a room the server is flushing its history to the database based on a flush setting interval (default 300 seconds). If a server is turned off before the flushing happens, all the recent history will be lost. Workaround for this is to set flushing interval very low (1-5 seconds), but this can impact performance of the server. Server should run flush operation before shutting down.

Environment

None

Activity

wroot 
April 26, 2014 at 10:59 AM
(edited)

Tested. Works ok.

Tom Evans 
April 22, 2014 at 4:40 PM

Updated service implementation to call the stop() method during shutdown.

Tom Evans 
April 22, 2014 at 3:58 PM

It appears the Component.shutdown() method in the MultiUserChatServiceImpl class was not implemented correctly (it is empty). At a minimum this method should call logAllConversation() to dump the pending chat stanzas into the DB. However, on closer inspection it appears that the original implementation assumes the stop() method will be called during module shutdown.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 21, 2014 at 8:53 AM
Updated April 26, 2014 at 11:00 AM
Resolved April 22, 2014 at 4:40 PM