You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Nick Shanin (Jira)" <ji...@apache.org> on 2026/10/02 04:43:00 UTC
[jira] [Commented] (SOLR-16130) crossCollection Join: NPE in ExportWriter.fillOutDocs
[ https://issues.apache.org/jira/browse/SOLR-16130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121803#comment-18121803 ]
Nick Shanin commented on SOLR-16130:
------------------------------------
I opened PR #5004 with a regression test for the reported scenario: https://github.com/apache/solr/pull/5004 — the root-cause fix (null-bitset guard in ExportWriter.topDocs()) already merged in #4953.
> crossCollection Join: NPE in ExportWriter.fillOutDocs
> -----------------------------------------------------
>
> Key: SOLR-16130
> URL: https://issues.apache.org/jira/browse/SOLR-16130
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 8.9, 8.11.1
> Environment: SolrCloud 8.11.1
> Reporter: Michelle
> Priority: Major
> Labels: NPE, crossCollection, export-writer, pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> when I try to use crossCollection join, I find nothing returned, actually, it should return 4 documents.
> {code:java}
> core2/select?q={!join method='crossCollection' fromIndex=core1 from=id to=to_id v='test_ids:2105443792'}{code}
>
> then I try to debug the subquery, I found
> {code:java}
> core1/export?q=test_ids:2105443792&fl=id&sort=id+asc{code}
> the response body is numFound=4, but docs list is empty.
> {code:java}
> { "responseHeader":{"status":0}, "response":{ "numFound":4, "docs":[]}}{code}
>
> From the Solr Server log, the NullPointerException Error occurs.
>
> INFO - 2022-03-31 07:17:55.329; org.apache.solr.core.SolrCore.Request; [core_shard1_replica_n1] webapp=/solr path=/export params=\{q=test_ids:2105443792&fl=id&sort=id+asc&_forwardedCount=1&wt=json} hits=4 status=0 QTime=0
> ERROR - 2022-03-31 07:17:55.330; org.apache.solr.handler.export.ExportBuffers; filler
> java.lang.NullPointerException: null
> at org.apache.lucene.util.BitSetIterator.<init>(BitSetIterator.java:61) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.identifyLowestSortingUnexportedDocs(ExportWriter.java:312) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.fillOutDocs(ExportWriter.java:440) ~[?:?]
> at org.apache.solr.handler.export.ExportBuffers.lambda$new$1(ExportBuffers.java:105) ~[?:?]
> at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736) ~[?:?]
> at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:218) ~[?:?]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
> at java.lang.Thread.run(Thread.java:829) [?:?]
> ERROR - 2022-03-31 07:17:55.330; org.apache.solr.handler.export.ExportBuffers; Exception running filler / writer
> java.util.concurrent.BrokenBarrierException: null
> at java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:251) ~[?:?]
> at java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:436) ~[?:?]
> at org.apache.solr.handler.export.ExportBuffers.exchangeBuffers(ExportBuffers.java:144) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.lambda$writeDocs$9(ExportWriter.java:403) ~[?:?]
> at org.apache.solr.handler.export.ExportBuffers.run(ExportBuffers.java:217) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.writeDocs(ExportWriter.java:400) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.lambda$write$1(ExportWriter.java:288) ~[?:?]
> at org.apache.solr.common.util.JsonTextWriter.writeIterator(JsonTextWriter.java:141) ~[?:?]
> at org.apache.solr.common.util.TextWriter.writeIterator(TextWriter.java:225) ~[?:?]
> at org.apache.solr.common.util.TextWriter.writeVal(TextWriter.java:67) ~[?:?]
> at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:153) ~[?:?]
> at org.apache.solr.common.util.JsonTextWriter$2.put(JsonTextWriter.java:176) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.lambda$write$2(ExportWriter.java:288) ~[?:?]
> at org.apache.solr.common.util.JsonTextWriter.writeMap(JsonTextWriter.java:164) ~[?:?]
> at org.apache.solr.common.util.TextWriter.writeMap(TextWriter.java:216) ~[?:?]
> at org.apache.solr.common.util.TextWriter.writeVal(TextWriter.java:69) ~[?:?]
> at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:153) ~[?:?]
> at org.apache.solr.common.util.JsonTextWriter$2.put(JsonTextWriter.java:176) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.lambda$write$3(ExportWriter.java:286) ~[?:?]
> at org.apache.solr.common.util.JsonTextWriter.writeMap(JsonTextWriter.java:164) ~[?:?]
> at org.apache.solr.handler.export.ExportWriter.write(ExportWriter.java:284) ~[?:?]
> at org.apache.solr.core.SolrCore$4.write(SolrCore.java:2787) ~[?:?]
> at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:49) ~[?:?]
> at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:890) ~[?:?]
> at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:583) ~[?:?]
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427) ~[?:?]
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357) ~[?:?]
> at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[jetty-security-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) ~[jetty-rewrite-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
> at java.lang.Thread.run(Thread.java:829) [?:?]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org