[jira] [Updated] (SOLR-8462) /stream handler should return something when exception has no message

2015-12-24 Thread Jason Gerlowski (JIRA)

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

Jason Gerlowski updated SOLR-8462:
--
Attachment: SOLR-8462.patch

Attached patch uses opts to use the class name of the exception if the message 
is null.

> /stream handler should return something when exception has no message
> -
>
> Key: SOLR-8462
> URL: https://issues.apache.org/jira/browse/SOLR-8462
> Project: Solr
>  Issue Type: Improvement
>Affects Versions: Trunk
>Reporter: Jason Gerlowski
>Priority: Trivial
> Fix For: Trunk
>
> Attachments: SOLR-8462.patch
>
>
> Currently, the /stream request handler reports errors by adding an 
> "EXCEPTION" name/value pair on a tuple in the TupleStream where the error 
> arose.  The "value" in this name/value pair is the message attached to the 
> exception.
> This works well in most instances, however not all exceptions have messages.  
> {{NullPointerExceptions}} and other run time exceptions are often in this 
> group.  This causes the /stream handler to return the relatively unhelpful 
> value: {"EXCEPTION":null,"EOF":true}
> The purpose of this JIRA is to change error handling in the /stream handler, 
> so that more helpful information is returned when the handled exception has 
> no message.
> This information could simply be the name of the exception that was received. 
>  Or it could be something more involved.  Not sure what would be the most 
> helpful here.



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

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



[jira] [Updated] (SOLR-8462) /stream handler should return something when exception has no message

2015-12-23 Thread Jason Gerlowski (JIRA)

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

Jason Gerlowski updated SOLR-8462:
--
Summary: /stream handler should return something when exception has no 
message  (was: /stream handler failures should return more information when 
exception message missing.)

> /stream handler should return something when exception has no message
> -
>
> Key: SOLR-8462
> URL: https://issues.apache.org/jira/browse/SOLR-8462
> Project: Solr
>  Issue Type: Improvement
>Affects Versions: Trunk
>Reporter: Jason Gerlowski
>Priority: Trivial
> Fix For: Trunk
>
>
> Currently, the /stream request handler reports errors by adding an 
> "EXCEPTION" name/value pair on a tuple in the TupleStream where the error 
> arose.  The "value" in this name/value pair is the message attached to the 
> exception.
> This works well in most instances, however not all exceptions have messages.  
> {{NullPointerExceptions}} and other run time exceptions are often in this 
> group.  This causes the /stream handler to return the relatively unhelpful 
> value: {"EXCEPTION":null,"EOF":true}
> The purpose of this JIRA is to change error handling in the /stream handler, 
> so that more helpful information is returned when the handled exception has 
> no message.
> This information could simply be the name of the exception that was received. 
>  Or it could be something more involved.  Not sure what would be the most 
> helpful here.



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

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