[jira] Created: (SOLR-2038) Corrupted Index After Commit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SOLR-2038) Corrupted Index After Commit

JIRA jira@apache.org
Corrupted Index After Commit
----------------------------

                 Key: SOLR-2038
                 URL: https://issues.apache.org/jira/browse/SOLR-2038
             Project: Solr
          Issue Type: Bug
          Components: search, SearchComponents - other
    Affects Versions: 4.0
         Environment:   * solr-4.0, built on 2010-07-25 15:13:05Z
    * I'll post schema.xml and solrconfig.xml separately
 
  * java 1.6.0_18 (OpenJDK, IcedTea6 1.8, Ubuntu 9.10)
 
  * Drupal 6.17
 
  * Drupal Apache Solr Search Integration, built on 2010/07/25 16:16:46
            Reporter: Alexander Dorsk


If I run queries which have matches after I commit documents, I get IndexOutOfBounds exceptions.

This is repeatable.

==== Details ====

=== Stack Trace ===
HTTP ERROR 500

Problem accessing /solr/select. Reason:

    Index: 114, Size: 36

java.lang.IndexOutOfBoundsException: Index: 114, Size: 36
        at java.util.ArrayList.rangeCheck(ArrayList.java:571)
        at java.util.ArrayList.get(ArrayList.java:349)
        at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:264)
        at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:204)
        at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:828)
        at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:588)
        at org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:266)
        at org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:429)
        at org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:268)
        at org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:287)
        at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:186)
        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:1323)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
</code>
 
=== Procedure ===

Here is how I make it happen:
  * create a new cck node with some custom fields
  * run drupal's cron
  * run a solr query that should have results.
  * error message above appears.

For example, I have a cck type 'authorized term', that has all text fields.  I make a new 'authorized term' and run Drupal's cron.  Then I execute this query:

http://localhost:8983/solr/select?q=tape

(there should be a result for this query)

The stack trace above appears as the result.

Note that if there are no results (e.g. http://localhost:8983/solr/select?q=asdfadf) then there is no error.

If I delete the index and rebuild it, and then run the query, there are no errors and I get the results I expect.

=== related ===
might be related to this message?

http://lucene.472066.n3.nabble.com/Querying-throws-java-util-ArrayList-RangeCheck-td998369.html

I'm using solr-4.0 because of the lucene syntax query parsing (I need fuzzy searches).

If you need any other diagnostic info, just let me know.  I'm fairly new to Solr, so my apologies if I'm missing anything.  

I think you all are doing great work on the project, and Solr has already been a tremendous help to me.


--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (SOLR-2038) Corrupted Index After Commit

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Dorsk updated SOLR-2038:
----------------------------------

    Attachment: schema.xml
                solrconfig.xml

schema.xml and solrconfig.xml

> Corrupted Index After Commit
> ----------------------------
>
>                 Key: SOLR-2038
>                 URL: https://issues.apache.org/jira/browse/SOLR-2038
>             Project: Solr
>          Issue Type: Bug
>          Components: search, SearchComponents - other
>    Affects Versions: 4.0
>         Environment:   * solr-4.0, built on 2010-07-25 15:13:05Z
>     * I'll post schema.xml and solrconfig.xml separately
>  
>   * java 1.6.0_18 (OpenJDK, IcedTea6 1.8, Ubuntu 9.10)
>  
>   * Drupal 6.17
>  
>   * Drupal Apache Solr Search Integration, built on 2010/07/25 16:16:46
>            Reporter: Alexander Dorsk
>         Attachments: schema.xml, solrconfig.xml
>
>
> If I run queries which have matches after I commit documents, I get IndexOutOfBounds exceptions.
> This is repeatable.
> ==== Details ====
> === Stack Trace ===
> HTTP ERROR 500
> Problem accessing /solr/select. Reason:
>     Index: 114, Size: 36
> java.lang.IndexOutOfBoundsException: Index: 114, Size: 36
> at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> at java.util.ArrayList.get(ArrayList.java:349)
> at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:264)
> at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:204)
> at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:828)
> at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:588)
> at org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:266)
> at org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:429)
> at org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:268)
> at org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:287)
> at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:186)
> 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:1323)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> </code>
>  
> === Procedure ===
> Here is how I make it happen:
>   * create a new cck node with some custom fields
>   * run drupal's cron
>   * run a solr query that should have results.
>   * error message above appears.
> For example, I have a cck type 'authorized term', that has all text fields.  I make a new 'authorized term' and run Drupal's cron.  Then I execute this query:
> http://localhost:8983/solr/select?q=tape
> (there should be a result for this query)
> The stack trace above appears as the result.
> Note that if there are no results (e.g. http://localhost:8983/solr/select?q=asdfadf) then there is no error.
> If I delete the index and rebuild it, and then run the query, there are no errors and I get the results I expect.
> === related ===
> might be related to this message?
> http://lucene.472066.n3.nabble.com/Querying-throws-java-util-ArrayList-RangeCheck-td998369.html
> I'm using solr-4.0 because of the lucene syntax query parsing (I need fuzzy searches).
> If you need any other diagnostic info, just let me know.  I'm fairly new to Solr, so my apologies if I'm missing anything.  
> I think you all are doing great work on the project, and Solr has already been a tremendous help to me.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2038) Corrupted Index After Commit

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Karl Wright commented on SOLR-2038:
-----------------------------------

I believe this issue was fixed by Mike McCandless in early August.  Try syncing up and rebuilding.


> Corrupted Index After Commit
> ----------------------------
>
>                 Key: SOLR-2038
>                 URL: https://issues.apache.org/jira/browse/SOLR-2038
>             Project: Solr
>          Issue Type: Bug
>          Components: search, SearchComponents - other
>    Affects Versions: 4.0
>         Environment:   * solr-4.0, built on 2010-07-25 15:13:05Z
>     * I'll post schema.xml and solrconfig.xml separately
>  
>   * java 1.6.0_18 (OpenJDK, IcedTea6 1.8, Ubuntu 9.10)
>  
>   * Drupal 6.17
>  
>   * Drupal Apache Solr Search Integration, built on 2010/07/25 16:16:46
>            Reporter: Alexander Dorsk
>         Attachments: schema.xml, solrconfig.xml
>
>
> If I run queries which have matches after I commit documents, I get IndexOutOfBounds exceptions.
> This is repeatable.
> ==== Details ====
> === Stack Trace ===
> HTTP ERROR 500
> Problem accessing /solr/select. Reason:
>     Index: 114, Size: 36
> java.lang.IndexOutOfBoundsException: Index: 114, Size: 36
> at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> at java.util.ArrayList.get(ArrayList.java:349)
> at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:264)
> at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:204)
> at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:828)
> at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:588)
> at org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:266)
> at org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:429)
> at org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:268)
> at org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:287)
> at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:186)
> 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:1323)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> </code>
>  
> === Procedure ===
> Here is how I make it happen:
>   * create a new cck node with some custom fields
>   * run drupal's cron
>   * run a solr query that should have results.
>   * error message above appears.
> For example, I have a cck type 'authorized term', that has all text fields.  I make a new 'authorized term' and run Drupal's cron.  Then I execute this query:
> http://localhost:8983/solr/select?q=tape
> (there should be a result for this query)
> The stack trace above appears as the result.
> Note that if there are no results (e.g. http://localhost:8983/solr/select?q=asdfadf) then there is no error.
> If I delete the index and rebuild it, and then run the query, there are no errors and I get the results I expect.
> === related ===
> might be related to this message?
> http://lucene.472066.n3.nabble.com/Querying-throws-java-util-ArrayList-RangeCheck-td998369.html
> I'm using solr-4.0 because of the lucene syntax query parsing (I need fuzzy searches).
> If you need any other diagnostic info, just let me know.  I'm fairly new to Solr, so my apologies if I'm missing anything.  
> I think you all are doing great work on the project, and Solr has already been a tremendous help to me.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (SOLR-2038) Corrupted Index After Commit

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Michael McCandless commented on SOLR-2038:
------------------------------------------

It looks like the same issue.  Note that after updating to latest 3.x tip (or trunk) you'll have to fully reindex.

> Corrupted Index After Commit
> ----------------------------
>
>                 Key: SOLR-2038
>                 URL: https://issues.apache.org/jira/browse/SOLR-2038
>             Project: Solr
>          Issue Type: Bug
>          Components: search, SearchComponents - other
>    Affects Versions: 4.0
>         Environment:   * solr-4.0, built on 2010-07-25 15:13:05Z
>     * I'll post schema.xml and solrconfig.xml separately
>  
>   * java 1.6.0_18 (OpenJDK, IcedTea6 1.8, Ubuntu 9.10)
>  
>   * Drupal 6.17
>  
>   * Drupal Apache Solr Search Integration, built on 2010/07/25 16:16:46
>            Reporter: Alexander Dorsk
>         Attachments: schema.xml, solrconfig.xml
>
>
> If I run queries which have matches after I commit documents, I get IndexOutOfBounds exceptions.
> This is repeatable.
> ==== Details ====
> === Stack Trace ===
> HTTP ERROR 500
> Problem accessing /solr/select. Reason:
>     Index: 114, Size: 36
> java.lang.IndexOutOfBoundsException: Index: 114, Size: 36
> at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> at java.util.ArrayList.get(ArrayList.java:349)
> at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:264)
> at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:204)
> at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:828)
> at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:588)
> at org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:266)
> at org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:429)
> at org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:268)
> at org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:287)
> at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:186)
> 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:1323)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> </code>
>  
> === Procedure ===
> Here is how I make it happen:
>   * create a new cck node with some custom fields
>   * run drupal's cron
>   * run a solr query that should have results.
>   * error message above appears.
> For example, I have a cck type 'authorized term', that has all text fields.  I make a new 'authorized term' and run Drupal's cron.  Then I execute this query:
> http://localhost:8983/solr/select?q=tape
> (there should be a result for this query)
> The stack trace above appears as the result.
> Note that if there are no results (e.g. http://localhost:8983/solr/select?q=asdfadf) then there is no error.
> If I delete the index and rebuild it, and then run the query, there are no errors and I get the results I expect.
> === related ===
> might be related to this message?
> http://lucene.472066.n3.nabble.com/Querying-throws-java-util-ArrayList-RangeCheck-td998369.html
> I'm using solr-4.0 because of the lucene syntax query parsing (I need fuzzy searches).
> If you need any other diagnostic info, just let me know.  I'm fairly new to Solr, so my apologies if I'm missing anything.  
> I think you all are doing great work on the project, and Solr has already been a tremendous help to me.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (SOLR-2038) Corrupted Index After Commit

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-2038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Dorsk closed SOLR-2038.
---------------------------------

    Resolution: Fixed

Thanks Guys, syncing up with the latest code fixed the problem for me.

> Corrupted Index After Commit
> ----------------------------
>
>                 Key: SOLR-2038
>                 URL: https://issues.apache.org/jira/browse/SOLR-2038
>             Project: Solr
>          Issue Type: Bug
>          Components: search, SearchComponents - other
>    Affects Versions: 4.0
>         Environment:   * solr-4.0, built on 2010-07-25 15:13:05Z
>     * I'll post schema.xml and solrconfig.xml separately
>  
>   * java 1.6.0_18 (OpenJDK, IcedTea6 1.8, Ubuntu 9.10)
>  
>   * Drupal 6.17
>  
>   * Drupal Apache Solr Search Integration, built on 2010/07/25 16:16:46
>            Reporter: Alexander Dorsk
>         Attachments: schema.xml, solrconfig.xml
>
>
> If I run queries which have matches after I commit documents, I get IndexOutOfBounds exceptions.
> This is repeatable.
> ==== Details ====
> === Stack Trace ===
> HTTP ERROR 500
> Problem accessing /solr/select. Reason:
>     Index: 114, Size: 36
> java.lang.IndexOutOfBoundsException: Index: 114, Size: 36
> at java.util.ArrayList.rangeCheck(ArrayList.java:571)
> at java.util.ArrayList.get(ArrayList.java:349)
> at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:264)
> at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:204)
> at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:828)
> at org.apache.lucene.index.DirectoryReader.document(DirectoryReader.java:588)
> at org.apache.solr.search.SolrIndexReader.document(SolrIndexReader.java:266)
> at org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:429)
> at org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:268)
> at org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:287)
> at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:186)
> 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:1323)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> </code>
>  
> === Procedure ===
> Here is how I make it happen:
>   * create a new cck node with some custom fields
>   * run drupal's cron
>   * run a solr query that should have results.
>   * error message above appears.
> For example, I have a cck type 'authorized term', that has all text fields.  I make a new 'authorized term' and run Drupal's cron.  Then I execute this query:
> http://localhost:8983/solr/select?q=tape
> (there should be a result for this query)
> The stack trace above appears as the result.
> Note that if there are no results (e.g. http://localhost:8983/solr/select?q=asdfadf) then there is no error.
> If I delete the index and rebuild it, and then run the query, there are no errors and I get the results I expect.
> === related ===
> might be related to this message?
> http://lucene.472066.n3.nabble.com/Querying-throws-java-util-ArrayList-RangeCheck-td998369.html
> I'm using solr-4.0 because of the lucene syntax query parsing (I need fuzzy searches).
> If you need any other diagnostic info, just let me know.  I'm fairly new to Solr, so my apologies if I'm missing anything.  
> I think you all are doing great work on the project, and Solr has already been a tremendous help to me.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]