You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/06/01 05:52:03 UTC
[GitHub] [spark] gengliangwang opened a new pull request #32725: [SPARK-33933][FollowUp][SQL]
gengliangwang opened a new pull request #32725:
URL: https://github.com/apache/spark/pull/32725
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
8. If you want to add or modify an error message, please read the guideline first:
https://spark.apache.org/error-message-guidelines.html
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
Fix a flaky test case in AdaptiveQueryExecSuite
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
The test case becomes flaky since there are too many debug logs:
https://github.com/Yikun/spark/runs/2715222392?check_suite_focus=true
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139125/testReport/
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
If no, write 'No'.
-->
No
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
-->
Unit test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] srowen commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
srowen commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r643101102
##########
File path: core/src/test/scala/org/apache/spark/SparkFunSuite.scala
##########
@@ -217,19 +217,27 @@ abstract class SparkFunSuite
*/
protected def withLogAppender(
appender: Appender,
- loggerName: Option[String] = None,
+ loggerNames: Seq[String] = Seq.empty,
level: Option[Level] = None)(
f: => Unit): Unit = {
- val logger = loggerName.map(Logger.getLogger).getOrElse(Logger.getRootLogger)
- val restoreLevel = logger.getLevel
- logger.addAppender(appender)
- if (level.isDefined) {
- logger.setLevel(level.get)
+ val loggers = if (loggerNames.nonEmpty) {
+ loggerNames.map(Logger.getLogger)
+ } else {
+ Seq(Logger.getRootLogger)
+ }
+ val restoreLevels = loggers.map(_.getLevel)
+ loggers.foreach { logger =>
+ logger.addAppender(appender)
+ if (level.isDefined) {
Review comment:
This could be `level.foreach` in both places, but doesn't matter
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852225661
Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43681/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] zhongyu09 commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
zhongyu09 commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642886740
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
I mean other feature's debug logs can also be collected by this LogAppender
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852046504
**[Test build #139137 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139137/testReport)** for PR 32725 at commit [`f890295`](https://github.com/apache/spark/commit/f890295c38f5c85d8b2c145740279af96e1bfae7).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852438777
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139178/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852366352
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43697/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852364158
Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43697/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852146835
**[Test build #139161 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139161/testReport)** for PR 32725 at commit [`620a8ba`](https://github.com/apache/spark/commit/620a8ba337a33d6408ae17b31156fce4679afdfe).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-33933][FollowUp][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851839028
**[Test build #139137 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139137/testReport)** for PR 32725 at commit [`f890295`](https://github.com/apache/spark/commit/f890295c38f5c85d8b2c145740279af96e1bfae7).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642868098
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
That only added one debug log when materializing a stage, and a query won't have many stages.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851909801
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43656/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852270658
**[Test build #139161 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139161/testReport)** for PR 32725 at commit [`620a8ba`](https://github.com/apache/spark/commit/620a8ba337a33d6408ae17b31156fce4679afdfe).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852130697
@HyukjinKwon @cloud-fan @MaxGekk @zhongyu09 I use a better approach and update the PR. Please take a look if you are interested.
We should encourage developers to use specific loggers during code review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852654525
Thanks for the reviews, merging to master
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on a change in pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r643317049
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,15 +1605,17 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
I mean here. Shall we revert this change? Not a big deal though
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851839028
**[Test build #139137 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139137/testReport)** for PR 32725 at commit [`f890295`](https://github.com/apache/spark/commit/f890295c38f5c85d8b2c145740279af96e1bfae7).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642801775
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
cc Max @MaxGekk since this max is from Max
(https://github.com/apache/spark/commit/88fc8dbc09c5d24ae89413ab1e1fbabdf1fd8028#diff-1c74a76903c7da8f8424992b46b2f99157609726bc580d60e2d0858ea11c2aecR197) :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852284159
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139161/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852238334
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43681/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851909801
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43656/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
MaxGekk commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642839431
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
> What was the reason for adding a limit in the LogAppender?
I added the limit to prevent OOM and memory pressure in tests. It was added when I troubleshooted random OOMs in tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852063026
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139137/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r643372758
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,15 +1605,17 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
Hmmm I thought I already reverted it...Updated now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851899149
Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43656/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852339936
**[Test build #139178 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139178/testReport)** for PR 32725 at commit [`4de337e`](https://github.com/apache/spark/commit/4de337ebb9010924ecf2382d9e0f3d12ade9343c).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852063026
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139137/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852129108
> I noticed AQE tests timing out after stalling for hours in another PR - could be related
Yes the logger appending can be slow
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852137133
> This is a good improvement! Do we still need to set the size to 10000?
Do you mean the default 1000 limit?
We can keep it so that if it is hit we should enhance the problematic test case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang closed pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
gengliangwang closed pull request #32725:
URL: https://github.com/apache/spark/pull/32725
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852238334
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43681/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852146835
**[Test build #139161 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139161/testReport)** for PR 32725 at commit [`620a8ba`](https://github.com/apache/spark/commit/620a8ba337a33d6408ae17b31156fce4679afdfe).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-851873543
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43656/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852366352
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43697/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852427777
**[Test build #139178 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139178/testReport)** for PR 32725 at commit [`4de337e`](https://github.com/apache/spark/commit/4de337ebb9010924ecf2382d9e0f3d12ade9343c).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852339936
**[Test build #139178 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/139178/testReport)** for PR 32725 at commit [`4de337e`](https://github.com/apache/spark/commit/4de337ebb9010924ecf2382d9e0f3d12ade9343c).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] cloud-fan commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
cloud-fan commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852134184
This is a good improvement! Do we still need to set the size to `10000`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] MaxGekk commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
MaxGekk commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642805850
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
Do you know what kind of debug logs we have, and why so much. Maybe reduce them?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642828871
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
I try running this locally, the log size is 388.
```
loggerName.map(Logger.getLogger).getOrElse(Logger.getRootLogger)
```
Maybe the test is flaky since it is using `Logger.getRootLogger`...
Shall we increase the default limit of LogAppender instead? What was the reason for adding a limit in the LogAppender?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] zhongyu09 commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
zhongyu09 commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642841115
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
I guess many debug logs are introducing after https://github.com/apache/spark/pull/31269 ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] gengliangwang commented on a change in pull request #32725: [SPARK-33933][FOLLOW-UP][SQL] Fix a flaky test case in AdaptiveQueryExecSuite
Posted by GitBox <gi...@apache.org>.
gengliangwang commented on a change in pull request #32725:
URL: https://github.com/apache/spark/pull/32725#discussion_r642828871
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/execution/adaptive/AdaptiveQueryExecSuite.scala
##########
@@ -1605,7 +1605,7 @@ class AdaptiveQueryExecSuite
}
test("SPARK-33933: Materialize BroadcastQueryStage first in AQE") {
- val testAppender = new LogAppender("aqe query stage materialization order test")
+ val testAppender = new LogAppender("aqe query stage materialization order test", 10000)
Review comment:
I try running this locally, the log size is 388.
```
loggerName.map(Logger.getLogger).getOrElse(Logger.getRootLogger)
```
The test is flaky since it is using `Logger.getRootLogger`.
Shall we increase the default limit of LogAppender instead? What was the reason for adding a limit in the LogAppender?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852284159
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139161/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852438777
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139178/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #32725: [SPARK-35595][TESTS] Support multiple loggers in testing method withLogAppender
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32725:
URL: https://github.com/apache/spark/pull/32725#issuecomment-852196146
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43681/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org