Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.5
-
None
-
None
-
Integration
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce
- Set up an XWiki cluster with 2 nodes sharing the same database
- On node 1, create a change request (or split an existing one)
- Look at the logs of node 2
Actual result
Node 2 logs an error such as:
ERROR r.ChangeRequestEventsConverter - Cannot find change request [b5fac2f9-53da-4581-89c6-9343ba0259ef] to convert event [event: [org.xwiki.contrib.changerequest.events.FileChangeDocumentSavedEvent@39f34765], source: [(b5fac2f9-53da-4581-89c6-9343ba0259ef,filechange-2.1--4886192540806087103)], data: [{docversion=1.1, doclanguage=, origdocversion=1.1, origdoclanguage=, docname=...}]]
and the FileChangeDocumentSavedEvent is not replayed on node 2.
Expected result
No error: the event is properly converted and replayed on the other node.
Cause
When saving a change request, the file changes are saved (and FileChangeDocumentSavedEvent is sent) before the change request document itself is saved. When the change request is new, the other node receives the event while the change request document doesn't exist yet in the database, so it cannot load the change request to convert the event.
Attachments
Issue Links
- relates to
-
CRAPP-112 Ensure proper support of events in a cluster environment
-
- Closed
-