-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-6305][CORE][TEST][FOLLOWUP] Add LoggingSuite and some improvements #34965
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
Conversation
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
This comment has been minimized.
This comment has been minimized.
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146421 has finished for PR 34965 at commit
|
...ftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
Show resolved
Hide resolved
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146433 has finished for PR 34965 at commit
|
This comment has been minimized.
This comment has been minimized.
3c058d6 to
452515e
Compare
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
retest this please |
|
Test build #146453 has started for PR 34965 at commit |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Test build #146452 has finished for PR 34965 at commit
|
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146488 has finished for PR 34965 at commit
|
| -Dspark.kubernetes.test.jvmImage=$JVM_IMAGE_NAME | ||
| -Dspark.kubernetes.test.pythonImage=$PYTHON_IMAGE_NAME | ||
| -Dspark.kubernetes.test.rImage=$R_IMAGE_NAME | ||
| -Dlog4j.logger.org.apache.spark=DEBUG |
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.
This seems not work with log4j 2.x. So for K8S decommission integration tests which check logs, I updated the test code to set up a log4j2.properties.
|
|
||
| appender.console.filter.1.a.type = ThresholdFilter | ||
| appender.console.filter.1.a.level = info | ||
| appender.console.filter.1.a.level = warn |
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.
followed original log4j1 properties file.
| appender.file.type = File | ||
| appender.file.name = File | ||
| appender.file.fileName = target/unit-tests.log | ||
| appender.file.fileName = target/integration-tests.log |
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.
I coped it wrongly in previous PR.
|
Test build #146493 has finished for PR 34965 at commit
|
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala
Outdated
Show resolved
Hide resolved
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146512 has finished for PR 34965 at commit
|
srowen
left a comment
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.
Looks good. This could be a follow-up on the main log4j 2.x JIRA, as some downstream may be looking for a clear place to find the log4j 2 changes, but not important
|
Thanks @srowen . Changed the PR title to a follow-up on the main log4j 2.x JIRA. |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146536 has finished for PR 34965 at commit
|
|
Thanks for review. I will merge this tonight. |
|
Merging to master. |
### What changes were proposed in this pull request? This reverts commit c0cedb1. ### Why are the changes needed? #35011 changes log level and causes some tests that check log message failed. Actually #34965 was merged not long ago which fixes logging issue for hive-thriftserver module that produces large log output. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass tests. Closes #35014 from viirya/revert-SPARK-37733. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
…ents This patch proposes to add `LoggingSuite` back and also does some other improvements. In summary: 1. Add `LoggingSuite` back 2. Refactor logging related change based on community suggestion, e.g. let `SparkShellLoggingFilter` inherit from `AbstractFilter` instead of `Filter`. 3. Fix maven test failures for hive-thriftserver module 4. Fix K8S decommision integration tests which check log output 5. A few places in code/doc which refer/mention log4j.properties `LoggingSuite` was wrongly removed in previous PR. We should add it back. There are a few places we can also simplify the code. A few places in code which programmingly write out log4j properties files are also changed to log4j2 here. No Pass all tests. Closes apache#34965 from viirya/log4j2_improvement. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Liang-Chi Hsieh <[email protected]>
…ents This patch proposes to add `LoggingSuite` back and also does some other improvements. In summary: 1. Add `LoggingSuite` back 2. Refactor logging related change based on community suggestion, e.g. let `SparkShellLoggingFilter` inherit from `AbstractFilter` instead of `Filter`. 3. Fix maven test failures for hive-thriftserver module 4. Fix K8S decommision integration tests which check log output 5. A few places in code/doc which refer/mention log4j.properties `LoggingSuite` was wrongly removed in previous PR. We should add it back. There are a few places we can also simplify the code. A few places in code which programmingly write out log4j properties files are also changed to log4j2 here. No Pass all tests. Closes apache#34965 from viirya/log4j2_improvement. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Liang-Chi Hsieh <[email protected]>
…ents This patch proposes to add `LoggingSuite` back and also does some other improvements. In summary: 1. Add `LoggingSuite` back 2. Refactor logging related change based on community suggestion, e.g. let `SparkShellLoggingFilter` inherit from `AbstractFilter` instead of `Filter`. 3. Fix maven test failures for hive-thriftserver module 4. Fix K8S decommision integration tests which check log output 5. A few places in code/doc which refer/mention log4j.properties `LoggingSuite` was wrongly removed in previous PR. We should add it back. There are a few places we can also simplify the code. A few places in code which programmingly write out log4j properties files are also changed to log4j2 here. No Pass all tests. Closes apache#34965 from viirya/log4j2_improvement. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Liang-Chi Hsieh <[email protected]> (cherry picked from commit 7fd3619)
What changes were proposed in this pull request?
This patch proposes to add
LoggingSuiteback and also does some other improvements. In summary:LoggingSuitebackSparkShellLoggingFilterinherit fromAbstractFilterinstead ofFilter.Why are the changes needed?
LoggingSuitewas wrongly removed in previous PR. We should add it back. There are a few places we can also simplify the code. A few places in code which programmingly write out log4j properties files are also changed to log4j2 here.Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass all tests.