You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/04/29 20:21:56 UTC
[jira] Created: (PIG-224) Streaming returns -127 on regardless of
the error code
Streaming returns -127 on regardless of the error code
------------------------------------------------------
Key: PIG-224
URL: https://issues.apache.org/jira/browse/PIG-224
Project: Pig
Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Arun C Murthy
If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-224) Streaming returns -127 on regardless of
the error code
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-224:
-------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
patch committed, thanks arun
> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
> Key: PIG-224
> URL: https://issues.apache.org/jira/browse/PIG-224
> Project: Pig
> Issue Type: Bug
> Reporter: Olga Natkovich
> Assignee: Arun C Murthy
> Attachments: PIG-224_0_20080429.patch
>
>
> If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-224) Streaming returns -127 on regardless of
the error code
Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arun C Murthy updated PIG-224:
------------------------------
Status: Patch Available (was: Open)
> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
> Key: PIG-224
> URL: https://issues.apache.org/jira/browse/PIG-224
> Project: Pig
> Issue Type: Bug
> Reporter: Olga Natkovich
> Assignee: Arun C Murthy
> Attachments: PIG-224_0_20080429.patch
>
>
> If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-224) Streaming returns -127 on regardless of
the error code
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593106#action_12593106 ]
Olga Natkovich commented on PIG-224:
------------------------------------
+1 on the code change. Running tests now. WIll commit once testing is done
> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
> Key: PIG-224
> URL: https://issues.apache.org/jira/browse/PIG-224
> Project: Pig
> Issue Type: Bug
> Reporter: Olga Natkovich
> Assignee: Arun C Murthy
> Attachments: PIG-224_0_20080429.patch
>
>
> If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-224) Streaming returns -127 on regardless of
the error code
Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arun C Murthy updated PIG-224:
------------------------------
Attachment: PIG-224_0_20080429.patch
Straight-forward to fix to get the exit code in the 'finally' block in ExecutableManager.close().
> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
> Key: PIG-224
> URL: https://issues.apache.org/jira/browse/PIG-224
> Project: Pig
> Issue Type: Bug
> Reporter: Olga Natkovich
> Assignee: Arun C Murthy
> Attachments: PIG-224_0_20080429.patch
>
>
> If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-224) Streaming returns -127 on regardless of
the error code
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593076#action_12593076 ]
Olga Natkovich commented on PIG-224:
------------------------------------
Sample python script:
#!/usr/bin/python
import sys
import optparse
def main():
p = optparse.OptionParser()
p.add_option('--upper', '-u', action="store_true")
options, arguments = p.parse_args()
sys.exit(-3)
line = sys.stdin.readline()
while line:
if options.upper == True:
line = line.upper()
sys.stdout.write(line)
line = sys.stdin.readline()
if __name__ == '__main__':
main()
Pig script:
define X `MyStreamAppExitBefore.py` ship('MyStreamAppExitBefore.py') stderr('error_handling_1');
A = load ':studenttab10k';
B = stream A through X;
store B into 'error_handling_1';
> Streaming returns -127 on regardless of the error code
> ------------------------------------------------------
>
> Key: PIG-224
> URL: https://issues.apache.org/jira/browse/PIG-224
> Project: Pig
> Issue Type: Bug
> Reporter: Olga Natkovich
> Assignee: Arun C Murthy
>
> If streaming application fails with any error code, the return seen via UI is always -127.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.