This issue has been created
There is 1 update.
 
 
LLM AI Integration / cid:jira-generated-image-avatar-bb43fecc-8e15-415b-b1eb-4f9e8e1629fc LLMAI-217 Open

Opening the chunks list of a collection shuts down the connection to a remote Solr

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-826967be-c6e6-4a0e-af72-5ffd83757d25 Paul Pantiru created this issue on 21/Oct/26 12:28
 
Summary: Opening the chunks list of a collection shuts down the connection to a remote Solr
Issue Type: cid:jira-generated-image-avatar-bb43fecc-8e15-415b-b1eb-4f9e8e1629fc Bug
Affects Versions: 0.4
Assignee: Unassigned
Created: 21/Oct/26 12:28
Priority: cid:jira-generated-image-static-major-90e2c354-60a7-4b8e-95f2-0a545cabd42e Major
Reporter: Paul Pantiru
Description:

Problem

With XWiki configured for a remote Solr (solr.type=remote), opening a collection page, whose chunks list is a Live Data backed by the LLM index core, shuts down the Solr connection of the whole node. Every later indexing, deletion or search of the LLM index fails with Connection Pool shut down until XWiki is restarted: searches return nothing, and new or changed pages are no longer indexed.

With the embedded Solr nothing happens, which is why it went unnoticed.

Cause

LLMIndexChunksEntryStore, the Live Data entry store behind the chunks list, obtains the platform's Solr client with this.solr.getCore("aillm").getClient() inside a try-with-resources block and closes it when the query is done. The platform caches a single client per core for the lifetime of the instance and only closes it at dispose; no platform caller ever closes it. With the embedded Solr the client's close() is a no-op; with a remote Solr the client is an HttpSolrClient whose close() destroys the shared connection pool.

The same defect in SolrConnector was fixed in 0.10 (commit ff26a75, "SolrConnector must not close the platform's shared Solr client"); the entry store is the one remaining caller that still closes the client. It is the remaining cause of LLMAI-110.

Fix

Fetch the client into a local variable and never close it, as SolrConnector does since 0.10.

Workaround

On a remote Solr, do not open the chunks list of a collection page, and restart XWiki if the error appears.

 
 

1 update

 
cid:jira-generated-image-avatar-826967be-c6e6-4a0e-af72-5ffd83757d25 Changes by Paul Pantiru on 21/Oct/26 12:28
 
Fix Version: 0.12