Skip to content
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

[SPARK-13584][SQL][Tests]Make ContinuousQueryManagerSuite not output logs to the console #11439

Closed
wants to merge 2 commits into from
Closed

[SPARK-13584][SQL][Tests]Make ContinuousQueryManagerSuite not output logs to the console #11439

wants to merge 2 commits into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Feb 29, 2016

What changes were proposed in this pull request?

Make ContinuousQueryManagerSuite not output logs to the console. The logs will still output to unit-tests.log.

I also updated SQLListenerMemoryLeakSuite to use quietly to avoid changing the log level which won't output logs to unit-tests.log.

How was this patch tested?

Just check Jenkins output.

@@ -23,6 +23,7 @@ log4j.appender.CA=org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern=%d{HH:mm:ss.SSS} %p %c: %m%n
log4j.appender.CA.Threshold = WARN
log4j.appender.CA.follow = true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SparkQA
Copy link

SparkQA commented Mar 1, 2016

Test build #52204 has finished for PR 11439 at commit 4642637.

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

@zsxwing
Copy link
Member Author

zsxwing commented Mar 3, 2016

cc @marmbrus for quick reviewing this small patch.

* System.out or System.err. Otherwise, ConsoleAppender will still output to the console even if
* we change System.out and System.err.
*/
private def testQuietly(name: String)(f: => Unit): Unit = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should put this somewhere more general?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved it to SQLTestUtils

@marmbrus
Copy link
Contributor

marmbrus commented Mar 3, 2016

LGTM

@SparkQA
Copy link

SparkQA commented Mar 3, 2016

Test build #52409 has finished for PR 11439 at commit 2598e98.

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

@zsxwing
Copy link
Member Author

zsxwing commented Mar 3, 2016

Merging to master. Thanks, @marmbrus

@asfgit asfgit closed this in ad0de99 Mar 3, 2016
@zsxwing zsxwing deleted the quietly-ContinuousQueryManagerSuite branch March 3, 2016 23:45
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
… logs to the console

## What changes were proposed in this pull request?

Make ContinuousQueryManagerSuite not output logs to the console. The logs will still output to `unit-tests.log`.

I also updated `SQLListenerMemoryLeakSuite` to use `quietly` to avoid changing the log level which won't output logs to `unit-tests.log`.

## How was this patch tested?

Just check Jenkins output.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes apache#11439 from zsxwing/quietly-ContinuousQueryManagerSuite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants