There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-4ae3ef48-c460-4a3f-97a8-c343ca8075a4 XWIKI-22421 Open

XWikiHibernateBaseStore related error when editing in realtime

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-50902b08-f367-4ea2-a807-94ab3b42ae7e Nikita Petrenko on 19/Aug/26 13:23
 

This issue also records lock action in database, I run query on local demo Jetty/HSQLDB 18.6.0. And depending on how many times it happens, that many records will be presented in the table.

SELECT * FROM xwikilock

Results into

XWL_DOC_ID XWL_AUTHOR XWL_DATE
3906721010564700566 XWiki.Admin 2026-08-13 16:13:26.886000

And as stacktrace stated, such record never goes away from database due to failed deletion transaction

Caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: delete from xwikilock where XWL_DOC_ID=?