There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f2f469c3-46ae-4a5c-999e-1500a3871407 XWIKI-25299 Open

Allow running the database migrations and the Distribution Wizard at startup and then stopping XWiki

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-14b7434e-4028-4be2-bb58-d6c849241499 Changes by Clément Christiaens on 14/Oct/26 21:19
 
Description: * Upgrading * a cluster safely needs the database migrations and the Distribution Wizard to run once, before the members of the new version serve requests, and the upgrade process needs to know whether it worked (for example a Kubernetes Job run before a rolling update). The existing {{xwiki.store.migration.exitAfterEnd}} property of {{xwiki.cfg}} does not allow it: it stops the JVM with the exit code 0 in the middle of the initialization, before the Distribution Wizard (so pages and extensions are not upgraded, and an empty database is left without any page), and on a failed migration the JVM keeps running.

*
Proposal * : a {{core.initialization.exitAfterUpgrade}} property of {{xwiki.properties}} (implies the eager initialization of XWIKI-25247) which waits for the initialization, checks the database of every wiki, runs the Distribution Wizard (not interactive) on the main wiki then on every sub-wiki, checks the results (wizard errors, failed extension jobs, installed user interface version), logs a summary and stops the JVM with the exit code 0 (upgraded), 1 (initialization or database failure) or 2 (Distribution Wizard failure). {{xwiki.store.migration.exitAfterEnd}} becomes deprecated.