You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2011/01/21 19:55:46 UTC

[jira] Commented: (SOLR-2327) java.lang.ArithmeticException: / by zero with queryResultCache size=0 and queryResultWindowSize=0

    [ https://issues.apache.org/jira/browse/SOLR-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984860#action_12984860 ] 

Yonik Seeley commented on SOLR-2327:
------------------------------------

Yeah, queryResultWindowSize does not really make sense (round to the nearest multiple of 0?) - so the only thing to fix here would perhaps be a better error message earlier on.

Just comment out queryResultWindowSize, or set it to 1 (same thing).

> java.lang.ArithmeticException: / by zero with queryResultCache size=0 and queryResultWindowSize=0
> -------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2327
>                 URL: https://issues.apache.org/jira/browse/SOLR-2327
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 1.4.1, 3.1
>            Reporter: Markus Jelsma
>            Priority: Minor
>             Fix For: 3.1
>
>
> With the following configuration:
>     <queryResultCache class="solr.FastLRUCache" size="0" initialSize="0" autowarmCount="0"/>
>     <queryResultWindowSize>0</queryResultWindowSize>
> The following exception will occur:
> 2011-01-21 13:48:13,599 ERROR [solr.core.SolrCore] - [http-8080-1] - : java.lang.ArithmeticException: / by zero
>         at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:833)
>         at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341)
>         at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1317)
>         at org.apache.solr.handler.PingRequestHandler.handleRequestBody(PingRequestHandler.java:63)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1317)
>         at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org