collective / collective.solr

Solr search engine integration for Plone
https://pypi.org/project/collective.solr/
21 stars 46 forks source link

Fix multipart error on search #322

Closed reebalazs closed 2 years ago

reebalazs commented 2 years ago

This error connection happens randomly and breaks a thread connection permanently.

o.a.s.s.SolrRequestParsers Couldn't get multipart parts in order to
delete them => java.io.IOException: Missing initial multi part boundary
  at org.eclipse.jetty.util.MultiPartInputStreamParser.parse(MultiPartInputStreamParser.java:606)
java.io.IOException: Missing initial multi part boundary

The fix resets the connection and completely recreates it from within the manager. (A simple connection reset is not sufficient.)

There is no evidence of what causes the issue but a reindex with many content items breaks the connection of the thread that was doing the reindex in a reliable way. This solution fixes this scenario.