There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-af838ea3-12f4-430c-894a-320a432fd63c XWIKI-25256 Open

Solr index updates still queued when XWiki stops are lost

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-5a34a3e3-fa69-4215-adb4-6e3aa9c8715c Claude on 11/Oct/26 18:33
 

Implementation notes.

  • When XWiki stops, the indexer refuses new entries (an entry being queued at that moment is either processed or refused, never left behind) and processes what is already queued, bounded by the new solr.indexer.shutdownTimeout property (in milliseconds, 30000 by default; 0 drops the queued entries immediately, which is the previous behaviour).
  • After the timeout, typically with a Solr server which does not answer, the remaining entries are dropped with a warning giving their number, and the indexer stops sending anything to the Solr server; the stop then always waits for the whole timeout. The Solr clients are only guaranteed to be usable while the drain runs.
  • When the requests fail immediately (a refused connection for example), the queues are processed within the timeout with one error per failed request, followed by a warning giving the number of failed requests.