This issue has been created
There is 1 update.
 
 
Change Request Application / cid:jira-generated-image-avatar-7098eee6-49a8-4c72-8ca0-5ef571471421 CRAPP-441 Open

Error when converting FileChangeDocumentSavedEvent on other cluster nodes when creating a change request

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-80b61607-fbe4-4520-a038-c17427ef80b0 Simon Urli created this issue on 20/Oct/26 14:09
 
Summary: Error when converting FileChangeDocumentSavedEvent on other cluster nodes when creating a change request
Issue Type: cid:jira-generated-image-avatar-7098eee6-49a8-4c72-8ca0-5ef571471421 Bug
Affects Versions: 1.5
Assignee: Unassigned
Created: 20/Oct/26 14:09
Priority: cid:jira-generated-image-static-major-e72cdd6a-a2d5-49fa-9aac-6ab24c416429 Major
Reporter: Simon Urli
Description:

Steps to reproduce

  1. Set up an XWiki cluster with 2 nodes sharing the same database
  2. On node 1, create a change request (or split an existing one)
  3. 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.

 
 

1 update

 
cid:jira-generated-image-avatar-80b61607-fbe4-4520-a038-c17427ef80b0 Changes by Simon Urli on 20/Oct/26 14:09
 
Assignee: Simon Urli