We're updating the issue view to help you get more done. 

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

Acceptance Test - Entry

None

Activity

Show:
Tom Evans
April 22, 2014, 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.

Tom Evans
April 22, 2014, 4:40 PM

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

wroot
April 26, 2014, 10:59 AM
Edited

Tested. Works ok.

Assignee

Tom Evans

Reporter

wroot

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure