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:
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. |