This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3f2cc12b-526f-470b-ba1a-a625d308fc65 XWIKI-22911 Open

Abusive modification of cached scheduler document at startup

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-17bf5fd8-c504-407b-9dfa-858673ae5160 Simon Urli created this issue on 21/Feb/25 11:00
 
Summary: Abusive modification of cached scheduler document at startup
Issue Type: cid:jira-generated-image-avatar-3f2cc12b-526f-470b-ba1a-a625d308fc65 Bug
Affects Versions: 16.10.4
Assignee: Unassigned
Components: Old Core
Created: 21/Feb/25 11:00
Priority: cid:jira-generated-image-static-major-c63677e4-8342-4431-93e3-e18a94b418ab Major
Reporter: Simon Urli
Description:

Since the changes made for XWIKI-22892 I started to obtain logs such as:

2025-02-21 10:35:23,975 [XWiki Scheduler initialization] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [xwiki:Mail.MailResender()] 
java.lang.IllegalStateException: Abusive modification of the cached document
	at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2436)
	at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:133)
	at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:386)
	at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:380)
	at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:61)
	at com.xpn.xwiki.objects.BaseCollection.setStringValue(BaseCollection.java:337)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:215)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:383)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:327)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:320)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:305)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:177)
	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:129)
	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:71)
	at java.base/java.lang.Thread.run(Thread.java:840)

at startup of XWiki.

I obtained those logs for the schedulers:

xwiki:Mail.MailResender()
xwiki:Mail.MailResender() (apparently got the log twice)
xwiki:Scheduler.NotificationEmailDailySender()
xwiki:Scheduler.NotificationEmailHourlySender()
xwiki:Scheduler.NotificationEmailWeeklySender()
 
 

2 updates

 
cid:jira-generated-image-avatar-9fbf8de8-9d83-444e-b02f-92c461b4f4a2 Changes by Thomas Mortagne on 21/Feb/25 11:03
 
Component: Scheduler
Component: Old Core