This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2895f794-95fb-4fe4-9285-8e2f596dcc99 XWIKI-25754 Open

Upgrade84FileStoreTest#upgrade is flickering because of a "No data for property [smtp_server_password]" error logged by the Solr indexer

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-cd9edfe0-f595-4d20-be05-45b7b2ceb388 Simon Urli created this issue on 13/Nov/26 15:07
 
Summary: Upgrade84FileStoreTest#upgrade is flickering because of a "No data for property [smtp_server_password]" error logged by the Solr indexer
Issue Type: cid:jira-generated-image-avatar-2895f794-95fb-4fe4-9285-8e2f596dcc99 Bug
Affects Versions: 17.10.15, 18.4.8
Assignee: Unassigned
Components: Development Issues only
Created: 13/Nov/26 15:07
Labels: flickering
Priority: cid:jira-generated-image-static-major-b8b45d48-000f-44e0-a733-38b53af84962 Major
Reporter: Simon Urli
Description:

The upgrade functional tests sometimes fail on the console validation, because the XWiki server logs an error while the upgrade is in progress:

2026-11-12 22:20:51,295 [XWiki Solr resolve thread] ERROR c.x.x.s.XWikiHibernateStore    - No data for property [smtp_server_password] of object id [-164837888023059193]

Occurrences

It did not appear in the 40 previous builds of the Environment Tests on stable-17.10.x, stable-18.4.x and master.

Analysis

The error is logged by XWikiHibernateStore#loadXWikiProperty when a property listed for an object has no row anymore when it is loaded. This is the race already described in SecurityCacheStressIT: a background thread (here the Solr indexer) loads a document while another thread saves it and removes or rewrites the object between the listing of its properties and their loading. SecurityCacheStressIT excludes that error for the rights properties only.

Here the property is smtp_server_password (the mail configuration of XWikiPreferences), so some save performed during the upgrade rewrites that object while Solr indexes the document. Which save it is has not been identified yet.

No change on the store, the mail configuration or Solr was committed just before the first occurrence. The only commits between the last run without the error and the first one with it are the 17.10.15 release, the upgrade of the standalone packaging to Jetty 12.1.15 (used by the upgrade tests), OpenNLP and a Docker test framework fix, on both branches. The Jetty upgrade may have changed the timing enough to expose the race more often (not verified).

This is a different failure from XWIKI-24282, which also affects Upgrade84FileStoreTest.

Stack Trace

java.lang.AssertionError: 
The following lines were matching forbidden content:[
2026-11-12 22:20:51,296 [CommonsExecStreamPumper-pool-6-thread-1] - 2026-11-12 22:20:51,295 [XWiki Solr resolve thread] ERROR c.x.x.s.XWikiHibernateStore    - No data for property [smtp_server_password] of object id [-164837888023059193]  
]
	at org.xwiki.test.integration.junit.LogCaptureValidator.validate(LogCaptureValidator.java:270)
	at org.xwiki.test.integration.junit.LogCaptureValidator.validate(LogCaptureValidator.java:220)
	at org.xwiki.test.integration.junit.LogCaptureValidator.validate(LogCaptureValidator.java:209)
	at org.xwiki.test.integration.junit4.ValidateConsoleRule$ValidateConsoleStatement.after(ValidateConsoleRule.java:95)
	at org.xwiki.test.integration.junit4.ValidateConsoleRule$ValidateConsoleStatement.evaluate(ValidateConsoleRule.java:78)
 
 

1 update

 
cid:jira-generated-image-avatar-cd9edfe0-f595-4d20-be05-45b7b2ceb388 Changes by Simon Urli on 13/Nov/26 15:08
 
Flickering Test: org.xwiki.test.ui.Upgrade84FileStoreTest#upgrade