-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-3193]output errer info when Process exit code is not zero in test suite #2108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,9 @@ | |
| package org.apache.spark | ||
|
|
||
| import java.io.File | ||
| import java.util.Properties | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. import not used I think |
||
|
|
||
| import org.apache.log4j.Logger | ||
| import org.apache.log4j.Level | ||
| import org.apache.log4j.{PropertyConfigurator, Logger, Level} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, thanks for this |
||
|
|
||
| import org.scalatest.FunSuite | ||
| import org.scalatest.concurrent.Timeouts | ||
|
|
@@ -54,7 +54,7 @@ class DriverSuite extends FunSuite with Timeouts { | |
| */ | ||
| object DriverWithoutCleanup { | ||
| def main(args: Array[String]) { | ||
| Logger.getRootLogger().setLevel(Level.WARN) | ||
| Utils.configTestLog4j("INFO") | ||
| val sc = new SparkContext(args(0), "DriverWithoutCleanup") | ||
| sc.parallelize(1 to 100, 4).count() | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You actually don't need
toStringhere (not a huge deal)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean just
${output}is ok?