You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zsxwing <gi...@git.apache.org> on 2016/03/01 00:56:54 UTC

[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/11439

    [SPARK-13584][SQL][Tests]Make ContinuousQueryManagerSuite not output 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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark quietly-ContinuousQueryManagerSuite

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11439.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11439
    
----
commit 46426376ba5a3a21e078a3e587b722603a96a685
Author: Shixiong Zhu <sh...@databricks.com>
Date:   2016-02-29T23:36:44Z

    Make ContinuousQueryManagerSuite not output logs to the console

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-190485102
  
    **[Test build #52204 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/52204/consoleFull)** for PR 11439 at commit [`4642637`](https://github.com/apache/spark/commit/46426376ba5a3a21e078a3e587b722603a96a685).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-190455315
  
    **[Test build #52204 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/52204/consoleFull)** for PR 11439 at commit [`4642637`](https://github.com/apache/spark/commit/46426376ba5a3a21e078a3e587b722603a96a685).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-191956783
  
    cc @marmbrus for quick reviewing this small patch.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/11439


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-192015388
  
    **[Test build #52409 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/52409/consoleFull)** for PR 11439 at commit [`2598e98`](https://github.com/apache/spark/commit/2598e9867df9b6929e7368363d92a3a2bf54c2cd).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-192022671
  
    Merging to master. Thanks, @marmbrus 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11439#discussion_r54951369
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/streaming/ContinuousQueryManagerSuite.scala ---
    @@ -49,7 +50,21 @@ class ContinuousQueryManagerSuite extends StreamTest with SharedSQLContext with
         sqlContext.streams.resetTerminated()
       }
     
    -  test("listing") {
    +  /**
    +   * Disable stdout and stderr when running the test. To not output the logs to the console,
    +   * ConsoleAppender's `follow` should be set to `true` so that it will honors reassignments of
    +   * 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 = {
    --- End diff --
    
    Moved it to SQLTestUtils


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-192016278
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/52409/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11439#discussion_r54501380
  
    --- Diff: sql/core/src/test/resources/log4j.properties ---
    @@ -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
    --- End diff --
    
    See https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/ConsoleAppender.html#setFollow(boolean)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11439#discussion_r54501420
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/streaming/ContinuousQueryManagerSuite.scala ---
    @@ -83,7 +98,7 @@ class ContinuousQueryManagerSuite extends StreamTest with SharedSQLContext with
             require(!q2.isActive)
             require(q2.exception.isDefined)
           }
    -      val ex2 = withClue("no error while getting non-active query") {
    +      withClue("no error while getting non-active query") {
    --- End diff --
    
    Just removed an unused variable


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11439#discussion_r54948774
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/streaming/ContinuousQueryManagerSuite.scala ---
    @@ -49,7 +50,21 @@ class ContinuousQueryManagerSuite extends StreamTest with SharedSQLContext with
         sqlContext.streams.resetTerminated()
       }
     
    -  test("listing") {
    +  /**
    +   * Disable stdout and stderr when running the test. To not output the logs to the console,
    +   * ConsoleAppender's `follow` should be set to `true` so that it will honors reassignments of
    +   * 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 = {
    --- End diff --
    
    Maybe we should put this somewhere more general?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-191964753
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-190485953
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-192016273
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-191973013
  
    **[Test build #52409 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/52409/consoleFull)** for PR 11439 at commit [`2598e98`](https://github.com/apache/spark/commit/2598e9867df9b6929e7368363d92a3a2bf54c2cd).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-13584][SQL][Tests]Make ContinuousQueryM...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/11439#issuecomment-190485958
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/52204/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org