Skip to content

Commit dbf2f49

Browse files
committed
[SPARK-45625][BUILD] Upgrade log4j to 2.21.0
### What changes were proposed in this pull request? This pr aims upgrade log4j from 2.20.0 to 2.21.0. ### Why are the changes needed? Support for the zstd compression algorithm has been added in the new version: apache/logging-log4j2#1508 | apache/logging-log4j2#1514 Meanwhile, the new version starts to use Java 11 for building, and the runtime version is still compatible with Java 8: apache/logging-log4j2#1369 The new version also brings some bug fixes, such as: - Fixed logging of java.sql.Date objects by appending it before Log4J tries to call java.util.Date.toInstant() on it: apache/logging-log4j2#1366 - Fixed concurrent date-time formatting issue in PatternLayout: apache/logging-log4j2#1485 - Fixed buffer size in Log4jFixedFormatter date time formatter: apache/logging-log4j2#1418 - Fixed the propagation of synchronous action failures in RollingFileManager and FileRenameAction: apache/logging-log4j2#1445 | apache/logging-log4j2#1549 - Fixed RollingFileManager to propagate failed synchronous actions correctly: apache/logging-log4j2#1445 and more. The complete release note is as follows: - https://github.com/apache/logging-log4j2/releases/tag/rel%2F2.21.0 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #43478 from LuciferYang/SPARK-45625. Authored-by: yangjie01 <[email protected]> Signed-off-by: yangjie01 <[email protected]>
1 parent 376de8a commit dbf2f49

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dev/deps/spark-deps-hadoop-3-hive-2.3

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ lapack/3.0.3//lapack-3.0.3.jar
175175
leveldbjni-all/1.8//leveldbjni-all-1.8.jar
176176
libfb303/0.9.3//libfb303-0.9.3.jar
177177
libthrift/0.12.0//libthrift-0.12.0.jar
178-
log4j-1.2-api/2.20.0//log4j-1.2-api-2.20.0.jar
179-
log4j-api/2.20.0//log4j-api-2.20.0.jar
180-
log4j-core/2.20.0//log4j-core-2.20.0.jar
181-
log4j-slf4j2-impl/2.20.0//log4j-slf4j2-impl-2.20.0.jar
178+
log4j-1.2-api/2.21.0//log4j-1.2-api-2.21.0.jar
179+
log4j-api/2.21.0//log4j-api-2.21.0.jar
180+
log4j-core/2.21.0//log4j-core-2.21.0.jar
181+
log4j-slf4j2-impl/2.21.0//log4j-slf4j2-impl-2.21.0.jar
182182
logging-interceptor/3.12.12//logging-interceptor-3.12.12.jar
183183
lz4-java/1.8.0//lz4-java-1.8.0.jar
184184
metrics-core/4.2.19//metrics-core-4.2.19.jar

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<sbt.project.name>spark</sbt.project.name>
121121
<asm.version>9.6</asm.version>
122122
<slf4j.version>2.0.9</slf4j.version>
123-
<log4j.version>2.20.0</log4j.version>
123+
<log4j.version>2.21.0</log4j.version>
124124
<!-- make sure to update IsolatedClientLoader whenever this version is changed -->
125125
<hadoop.version>3.3.6</hadoop.version>
126126
<!-- SPARK-41247: When updating `protobuf.version`, also need to update `protoVersion` in `SparkBuild.scala` -->

0 commit comments

Comments
 (0)