You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Tatiana Kiseleva (Jira)" <ji...@apache.org> on 2022/02/02 07:31:00 UTC

[jira] [Commented] (SOLR-15712) Certain unicode field values throw exceptions for query and backup operations

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

Tatiana Kiseleva commented on SOLR-15712:
-----------------------------------------

Have the same issue.

I indexed several Cyrillic values for the text field and they're correctly displayed in the field schema:

!Selection_119.png|width=636,height=226!

When I click on 1, I'm getting the error like in the task description:

!Selection_120.png|width=415,height=137!

When I click on 2 (which 1 char shorter), I can get results:

!image-2022-02-02-14-28-58-102.png|width=386,height=173!

Maybe it similar issue to [LUCENE-4587|https://issues.apache.org/jira/browse/LUCENE-4587] and could be solved similar way.

> Certain unicode field values throw exceptions for query and backup operations
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-15712
>                 URL: https://issues.apache.org/jira/browse/SOLR-15712
>             Project: Solr
>          Issue Type: Bug
>          Components: Backup/Restore, search
>    Affects Versions: 7.7.3
>            Reporter: Kosala Almeda
>            Priority: Major
>              Labels: drupal_integration
>         Attachments: Selection_119.png, Selection_120.png, image-2022-02-02-14-28-58-102.png
>
>
> Following error is thrown when running backupĀ 
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 45
> 	at org.apache.lucene.util.UnicodeUtil.UTF8toUTF16(UnicodeUtil.java:602)
> 	at org.apache.lucene.util.BytesRef.utf8ToString(BytesRef.java:137)
> 	at org.apache.solr.search.SolrDocumentFetcher.decodeDVField(SolrDocumentFetcher.java:550)
> 	at org.apache.solr.search.SolrDocumentFetcher.decorateDocValueFields(SolrDocumentFetcher.java:506)
> 	at org.apache.solr.search.SolrDocumentFetcher$RetrieveFieldsOptimizer.getSolrDoc(SolrDocumentFetcher.java:800)
> 	at org.apache.solr.search.SolrDocumentFetcher$RetrieveFieldsOptimizer.access$000(SolrDocumentFetcher.java:672)
> 	at org.apache.solr.search.SolrDocumentFetcher.solrDoc(SolrDocumentFetcher.java:278)
> 	at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:95)
> 	at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:59)
> 	at org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:184)
> 	at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:136)
> 	at org.apache.solr.common.util.JsonTextWriter.writeNamedListAsMapWithDups(JsonTextWriter.java:386)
> 	at org.apache.solr.common.util.JsonTextWriter.writeNamedList(JsonTextWriter.java:292)
> 	at org.apache.solr.response.JSONWriter.writeResponse(JSONWriter.java:73)
> 	at org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:66)
> 	at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:65)
> 	at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:811)
> 	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:540)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:395)
> 	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:341)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
> 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
> 	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> 	at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:502)
> 	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
> 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
> 	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
> 	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
> 	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
> 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
> 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
> 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
> 	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
> 	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:748)
> {noformat}
> with some debugging found out that select {{\*:\*}} query also throws the same error for some of the documents.
> This is identified with search api [solr 4.x configset|https://git.drupalcode.org/project/search_api_solr/-/tree/4.1.12/jump-start/solr7/cloud-config-set] for Drupal and eastern European language contents.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org