Steps to reproduce
- Start XWiki on a wiki large enough for the Solr index synchronization executed at startup to take some time (or with an empty Solr index)
- Stop XWiki while that synchronization is still running
Expected XWiki stops without error. The synchronization is interrupted and is executed again at the next startup. Actual The following error is logged while stopping:
Cause Since XWIKI-15166, the indexer job waits for the indexing to be applied (this.indexer.waitReady().get()) before removing the invalid entries. When XWiki stops, DefaultSolrIndexer completes all the pending waitReady() futures with IndexException("Indexing stopped.") (since XWIKI-22323), which the job propagates as a failure. This is visible on the functional tests which stop XWiki soon after startup, e.g. SuggestTest (distribution flavor misc tests) and the distribution flavor storage tests. |