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

Alex Deparvu updated SOLR-16929:
--------------------------------
    Description: 
The exception message included by the SolrStream can sometimes be the encoded 
(javabin) string representation of the remote exception.
I think this might be due to consuming the stream response as string instead of 
using a reader. See 'consumeStreamAsErrorMessage' method 
https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45

example - partially redacted until I am able to repro with a test

* solr 8.11 output
{noformat}
  {
  "result-set": {
    "docs": [
      {
        "EXCEPTION": "java.util.concurrent.ExecutionException: 
java.io.IOException: --> 
        https://host:8983/solr/a_shard2_replica_n2/:Invalid Date String:
        '89'",
        "EOF": true,
        "RESPONSE_TIME": 100
      }
    ]
  }
{noformat}  

* solr 9.2 output
{noformat}
{
  "result-set": {
    "docs": [
      {
        "EXCEPTION": "java.util.concurrent.ExecutionException: 
java.io.IOException: 
        Query to '/a_shard2_replica_n2/export?q=_query_' 
        failed due to: (400) 
\u0002\u0011�.responseHeader\n\u0001�&statusP\u0019�(response
        \n\u0002�$docs�\n\u0001�)EXCEPTION8Invalid Date String:'89'�(numFound
        \u0006\u0000\u0000\u0000\u0000\u000f",
        "EOF": true,
        "RESPONSE_TIME": 75
      }
    ]
  }
}
{noformat}




  was:
The exception message included by the SolrStream can sometimes be the encoded 
(javabin) string representation of the remote exception.
I think this might be due to consuming the stream response as string instead of 
using a reader. See 'consumeStreamAsErrorMessage' method 
https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45


> SolrStream propagates undecoded error message
> ---------------------------------------------
>
>                 Key: SOLR-16929
>                 URL: https://issues.apache.org/jira/browse/SOLR-16929
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>    Affects Versions: 9.0
>            Reporter: Alex Deparvu
>            Priority: Minor
>
> The exception message included by the SolrStream can sometimes be the encoded 
> (javabin) string representation of the remote exception.
> I think this might be due to consuming the stream response as string instead 
> of using a reader. See 'consumeStreamAsErrorMessage' method 
> https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45
> example - partially redacted until I am able to repro with a test
> * solr 8.11 output
> {noformat}
>   {
>   "result-set": {
>     "docs": [
>       {
>         "EXCEPTION": "java.util.concurrent.ExecutionException: 
> java.io.IOException: --> 
>         https://host:8983/solr/a_shard2_replica_n2/:Invalid Date String:
>         '89'",
>         "EOF": true,
>         "RESPONSE_TIME": 100
>       }
>     ]
>   }
> {noformat}  
> * solr 9.2 output
> {noformat}
> {
>   "result-set": {
>     "docs": [
>       {
>         "EXCEPTION": "java.util.concurrent.ExecutionException: 
> java.io.IOException: 
>         Query to '/a_shard2_replica_n2/export?q=_query_' 
>         failed due to: (400) 
> \u0002\u0011�.responseHeader\n\u0001�&statusP\u0019�(response
>         \n\u0002�$docs�\n\u0001�)EXCEPTION8Invalid Date String:'89'�(numFound
>         \u0006\u0000\u0000\u0000\u0000\u000f",
>         "EOF": true,
>         "RESPONSE_TIME": 75
>       }
>     ]
>   }
> }
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to