Skip to content

Commit b6a1eb8

Browse files
committed
[SPARK-54445][SQL][TESTS] Fix configuration related to ThresholdFilter in log4j2.properties within hive-thriftserver module
### What changes were proposed in this pull request? This pr has corrected the configurations related to `ThresholdFilter` in `log4j2.properties` within `hive-thriftserver` module to prevent the following ERROR messages in the test logs: - https://github.com/apache/spark/actions/runs/19555422394/job/55996708612 ``` 2025-11-20T05:56:22.1186895Z 2025-11-20T05:56:22.115648760Z pool-1-thread-1 ERROR Filters contains invalid attributes "onMatch", "onMismatch" 2025-11-20T05:56:22.1317678Z 2025-11-20T05:56:22.130070007Z pool-1-thread-1 ERROR Filters contains invalid attributes "onMatch", "onMismatch" ``` ### Why are the changes needed? Fix log4j configurations related to `ThresholdFilter` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions - Manually verify that the test logs no longer contain similar printouts as described above. ### Was this patch authored or co-authored using generative AI tooling? No Closes #53139 from LuciferYang/th-log4j. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: yangjie01 <yangjie01@baidu.com>
1 parent 00dda2c commit b6a1eb8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

sql/hive-thriftserver/src/test/resources/log4j2.properties

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ appender.console.target = SYSTEM_OUT
2727
appender.console.layout.type = PatternLayout
2828
appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c: %maxLen{%m}{512}%n%ex{8}%n
2929

30-
appender.console.filter.1.type = Filters
31-
32-
appender.console.filter.1.a.type = ThresholdFilter
33-
appender.console.filter.1.a.level = warn
30+
appender.console.filter.threshold.type = ThresholdFilter
31+
appender.console.filter.threshold.level = warn
3432

3533
#File Appender
3634
appender.file.type = File
@@ -39,10 +37,8 @@ appender.file.fileName = target/unit-tests.log
3937
appender.file.layout.type = PatternLayout
4038
appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
4139

42-
appender.file.filter.1.type = Filters
43-
44-
appender.file.filter.1.a.type = ThresholdFilter
45-
appender.file.filter.1.a.level = debug
40+
appender.file.filter.threshold.type = ThresholdFilter
41+
appender.file.filter.threshold.level = debug
4642

4743
# Some packages are noisy for no good reason.
4844
logger.parquet_recordreader.name = org.apache.parquet.hadoop.ParquetRecordReader

0 commit comments

Comments
 (0)