Skip to content

Conversation

@vanzin
Copy link
Contributor

@vanzin vanzin commented Jul 5, 2016

Using "Method.invoke" causes an exception to be thrown, not an error, so
Utils.waitForProcess() was always throwing an exception when run on Java 7.

…eflection.

Using "Method.invoke" causes an exception to be throw, not an error, so
Utils.waitForProcess() was always throwing an exception when run on Java 7.
@vanzin vanzin changed the title [SPARK-16385][core] Catch correct exception when calling method via r… [SPARK-16385][core] Catch correct exception when calling method via reflection. Jul 5, 2016
@srowen
Copy link
Member

srowen commented Jul 5, 2016

Dang it, my fault. Yes that's the right change, sorry.

@SparkQA
Copy link

SparkQA commented Jul 5, 2016

Test build #61786 has finished for PR 14056 at commit 5dc29f0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor Author

vanzin commented Jul 5, 2016

Merging to master / 2.0.

asfgit pushed a commit that referenced this pull request Jul 5, 2016
…eflection.

Using "Method.invoke" causes an exception to be thrown, not an error, so
Utils.waitForProcess() was always throwing an exception when run on Java 7.

Author: Marcelo Vanzin <[email protected]>

Closes #14056 from vanzin/SPARK-16385.

(cherry picked from commit 59f9c1b)
Signed-off-by: Marcelo Vanzin <[email protected]>
@asfgit asfgit closed this in 59f9c1b Jul 5, 2016
zzcclp added a commit to zzcclp/spark that referenced this pull request Jul 6, 2016
@srowen
Copy link
Member

srowen commented Jul 11, 2016

Merged to 1.6 too

asfgit pushed a commit that referenced this pull request Jul 11, 2016
…eflection.

Using "Method.invoke" causes an exception to be thrown, not an error, so
Utils.waitForProcess() was always throwing an exception when run on Java 7.

Author: Marcelo Vanzin <[email protected]>

Closes #14056 from vanzin/SPARK-16385.

(cherry picked from commit 59f9c1b)
Signed-off-by: Sean Owen <[email protected]>
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jul 12, 2016
…eflection.

Using "Method.invoke" causes an exception to be thrown, not an error, so
Utils.waitForProcess() was always throwing an exception when run on Java 7.

Author: Marcelo Vanzin <[email protected]>

Closes apache#14056 from vanzin/SPARK-16385.

(cherry picked from commit 59f9c1b)
Signed-off-by: Sean Owen <[email protected]>
(cherry picked from commit 702178d)
@vanzin vanzin deleted the SPARK-16385 branch July 12, 2016 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants