hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Francisoud (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-90) PigServer#store does swallow exception
Date Tue, 12 Feb 2008 13:39:08 GMT

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

Benjamin Francisoud updated PIG-90:
-----------------------------------

    Attachment: PIG-90-v01.patch

I tried but couldn't reproduce it...

I created a Unit Test to simulate this error with a fake StoreFunc throwing a RuntimeException
in putNext() and here's the stacktrace I got:
{noformat}
java.io.IOException: Unable to store alias counts
	at org.apache.pig.PigServer.store(PigServer.java:328)
	at org.apache.pig.PigServer.store(PigServer.java:310)
	at org.apache.pig.PigServerTest.testStoreException(PigServerTest.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
	at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
	at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
	at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
	at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
	at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
	at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
	at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
	at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.pig.backend.executionengine.ExecException
	at org.apache.pig.backend.local.executionengine.LocalExecutionEngine.execute(LocalExecutionEngine.java:137)
	at org.apache.pig.backend.local.executionengine.LocalExecutionEngine.execute(LocalExecutionEngine.java:1)
	at org.apache.pig.PigServer.store(PigServer.java:325)
	... 22 more
Caused by: java.io.IOException: java.lang.RuntimeException: putNext
	at org.apache.pig.builtin.BogusStoreFunc.putNext(BogusStoreFunc.java:17)
	at org.apache.pig.impl.io.PigFile.store(PigFile.java:64)
	at org.apache.pig.backend.local.executionengine.POStore.getNext(POStore.java:103)
	at org.apache.pig.backend.local.executionengine.LocalExecutionEngine.execute(LocalExecutionEngine.java:130)
	... 24 more
{noformat}

You can see the correct error message down the stacktrace.

According to the error message at runtime you pasted in the jirra description; the jvm couldn't
find:
[http://java.sun.com/javase/6/docs/api/java/io/IOException.html|IOException(String message,
Throwable cause)]  which is java 6.

I think you tested pig just when the [PIG-32|https://issues.apache.org/jira/browse/PIG-32?focusedCommentId=12564725#action_12564725]
had introduce java 5/6 incompatibilities, Antonio Magnaghi and Olga Natkovich  fixed it.
So you should test again and see if you still et this error...

> PigServer#store does swallow exception
> --------------------------------------
>
>                 Key: PIG-90
>                 URL: https://issues.apache.org/jira/browse/PIG-90
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.0.0
>            Reporter: Stefan Groschupf
>            Priority: Critical
>             Fix For: 0.1.0
>
>         Attachments: PIG-90-v01.patch
>
>
> My custom DatabaseStoreFunction throws an (runtime or ioException) exception in putNext.
> Instead throwing this exception all the way up  (the exceptions contains a nice error
message text) however in pigServer 326 a java.lang.NoSuchMethodError: java.io.IOException:
method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found Exception will be
thrown. 

-- 
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