lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Chollet (JIRA)" <>
Subject [jira] [Created] (SOLR-8851) ClassCastException in SearchHandler
Date Tue, 15 Mar 2016 10:09:33 GMT
Pascal Chollet created SOLR-8851:

             Summary: ClassCastException in SearchHandler
                 Key: SOLR-8851
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.4.1
            Reporter: Pascal Chollet

When there is a query timeout in non-distrub mode, {{SearchHandler}} is throwing a {{ClassCastException}}:
{code}java.lang.ClassCastException: org.apache.solr.response.ResultContext cannot be cast
to org.apache.solr.common.SolrDocumentList
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
	at org.apache.solr.handler.RequestHandlerBase.handleRequest(

The problem can be reproduced if any component running after {{QueryComponent}} times out
- in our case it is {{FacetComponent}} which throws a {{ExitingReaderException}}.
{{SearchHandler:293}} expects a {{SolrDocumentList}} in {{rsp.response}}, but {{QueryComponent}}
did add a {{ResultContext}} instead.

It looks like this is not a problem, if the {{QueryComponent}} itself is timing out, as rsp.response
is null in that case. It's only a problem if a component after {{QueryComponent}} is timing

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message