java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucene.search.ConjunctionScorer

Apache's JIRA Issue Tracker | Tim Underwood | 4 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [LUCENE-6660] Assertion fails for ToParentBlockJoinQuery$BlockJoinScorer.nextDoc - ASF JIRA

    apache.org | 1 year ago
    java.lang.IllegalStateException: child query must only match non-parent docs, but parent docID=2147483647 matched childScorer=class org.apache.lucene.search.TermScorer
  2. 0

    Started seeing this error message on a production Solr 6.3.0 system today making use of parent/child documents: {code} java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucene.search.ConjunctionScorer at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.checkOrthogonal(ToParentBlockJoinQuery.java:403) at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.access$400(ToParentBlockJoinQuery.java:206) at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer$1.nextDoc(ToParentBlockJoinQuery.java:327) at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219) at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172) at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473) at org.apache.solr.search.DocSetUtil.createDocSetGeneric(DocSetUtil.java:106) at org.apache.solr.search.DocSetUtil.createDocSet(DocSetUtil.java:95) at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:1379) at org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:1057) at org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(SolrIndexSearcher.java:1227) at org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1842) at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1616) at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:617) at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:531) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:153) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2213) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:460) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:303) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:518) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745) {code} The "docId=2147483647" part seems suspicious since that corresponds to Integer.MAX_VALUE and my index only has 102,013,289 docs in it. According to the Solr searcher stats page I have: numDocs: 71,870,998 maxDocs: 102,013,289 deletedDocs: 30,142,291 I took the query that was failing and attempted to intersect my parent query with the child query to find any problem docs but that came back with 0 results. After performing an optimize (via the Solr UI) on the index the problem has gone away and the query that previously triggered this error works as it should.

    Apache's JIRA Issue Tracker | 4 months ago | Tim Underwood
    java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucene.search.ConjunctionScorer
  3. 0

    Lucene block join query throwing ArrayOutOfBoundsException

    Stack Overflow | 2 years ago | Arshad
    java.lang.AssertionError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucene.search.ConjunctionScorer

      at org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.checkOrthogonal()
    2. Lucene Join
      ToParentBlockJoinQuery$BlockJoinScorer$1.nextDoc
      1. org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.checkOrthogonal(ToParentBlockJoinQuery.java:403)
      2. org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.access$400(ToParentBlockJoinQuery.java:206)
      3. org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer$1.nextDoc(ToParentBlockJoinQuery.java:327)
      3 frames
    3. Lucene
      IndexSearcher.search
      1. org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:219)
      2. org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:172)
      3. org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
      4. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:669)
      5. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
      5 frames
    4. Apache Solr Core
      SolrDispatchFilter.doFilter
      1. org.apache.solr.search.DocSetUtil.createDocSetGeneric(DocSetUtil.java:106)
      2. org.apache.solr.search.DocSetUtil.createDocSet(DocSetUtil.java:95)
      3. org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:1379)
      4. org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:1057)
      5. org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(SolrIndexSearcher.java:1227)
      6. org.apache.solr.search.SolrIndexSearcher.getDocListAndSetNC(SolrIndexSearcher.java:1842)
      7. org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1616)
      8. org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:617)
      9. org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:531)
      10. org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
      11. org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:153)
      12. org.apache.solr.core.SolrCore.execute(SolrCore.java:2213)
      13. org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:654)
      14. org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:460)
      15. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:303)
      16. org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
      16 frames
    5. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      14. org.eclipse.jetty.server.Server.handle(Server.java:518)
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
      17. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      18. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      19. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      19 frames
    6. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156)
      2 frames
    7. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame