hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Srinivasan (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (PIG-571) pigserver methods do not throw error or return error code when an error occurs
Date Fri, 16 Jan 2009 20:06:59 GMT

    [ https://issues.apache.org/jira/browse/PIG-571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664657#action_12664657
] 

sms edited comment on PIG-571 at 1/16/09 12:06 PM:
-------------------------------------------------------------------

In the current implementation, Pig displays the errors including the stack trace but does
not throw an exception. There are two problems in the existing code:

1. Hadoop returns status as String instead of serialized objects
2. Pig does not throw an exception on failures with the appropriate details.

As part of the error handling feature, Pig will handle point 2 in the third milestone(PIG-590)
and request Hadoop to support status reporting via objects and not just Strings.

      was (Author: sms):
    In the current implementation, Pig displays the errors including the stack trace but do
not throw an exception. There are two problems in the existing code:

1. Hadoop returns status as String instead of serialized objects
2. Pig does not throw an exception on failures with the appropriate details.

As part of the error handling feature, Pig will handle point 2 in the third milestone(PIG-590)
and request Hadoop to support status reporting via objects and not just Strings.
  
> pigserver methods do not throw error or return error code when an error occurs
> ------------------------------------------------------------------------------
>
>                 Key: PIG-571
>                 URL: https://issues.apache.org/jira/browse/PIG-571
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Christopher Olston
>            Assignee: Santhosh Srinivasan
>
> I do PigServer.registerQuery("store ..."), and the query fails. Pig prints a bunch of
stack traces but does not throw an error back to the caller. This is a major problem because
my client needs to know whether the Pig command succeeded or failed.
> I saw this problem with registerQuery() ... the same problem may arise with other PigServer
methods as well, such as store(), copy(), etc. -- not sure.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message