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

Alan Woodward updated SOLR-6751:
--------------------------------
    Attachment: SOLR-6751.patch

Trivial patch, changing it to throw ErrorCode.BAD_REQUEST rather than 
ErrorCode.SERVER_ERROR

> Analysis errors in DirectUpdateHandler2 throw ServerError exceptions
> --------------------------------------------------------------------
>
>                 Key: SOLR-6751
>                 URL: https://issues.apache.org/jira/browse/SOLR-6751
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Minor
>         Attachments: SOLR-6751.patch
>
>
> If you try and add a document with a docvalues field over 32k in length, 
> lucene will throw an IllegalArgumentException.  DirectUpdateHandler2.addDoc() 
> catches this, but then re-throws as a SolrException with a 500 error code, so 
> any clients trying to distinguish between bad data errors and server status 
> errors will do the wrong thing.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to