This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 3444e97  [SPARK-57859] Exclude `com.esotericsoftware` dependency
3444e97 is described below

commit 3444e976f226525247d5e243e1323c353a113e13
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Jul 1 10:53:15 2026 -0700

    [SPARK-57859] Exclude `com.esotericsoftware` dependency
    
    ### What changes were proposed in this pull request?
    
    This PR excludes the transitive `com.esotericsoftware` dependency from the 
shaded operator jar.
    
    ### Why are the changes needed?
    
    `com.esotericsoftware:kryo-shaded` is pulled in via `spark-core` (directly 
and through `com.twitter:chill`) as a serializer. The operator only builds 
driver/submission specs and never runs it, like the other already-excluded 
runtime codecs and serializers (`org.lz4`, `org.xerial.snappy`, 
`com.github.luben`, `org.roaringbitmap`, `com.ning`).
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Opus 4.8
    
    Closes #731 from dongjoon-hyun/SPARK-57859.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 spark-operator/build.gradle          | 1 +
 spark-submission-worker/build.gradle | 1 +
 2 files changed, 2 insertions(+)

diff --git a/spark-operator/build.gradle b/spark-operator/build.gradle
index 4b171e7..2c3861b 100644
--- a/spark-operator/build.gradle
+++ b/spark-operator/build.gradle
@@ -39,6 +39,7 @@ dependencies {
   implementation(libs.metrics.core)
   implementation(libs.metrics.jvm)
   compileOnly(libs.spark.core) {
+    exclude group: "com.esotericsoftware"
     exclude group: "com.github.luben"
     exclude group: "com.ibm.icu"
     exclude group: "com.ning"
diff --git a/spark-submission-worker/build.gradle 
b/spark-submission-worker/build.gradle
index 35fc964..1fb68cc 100644
--- a/spark-submission-worker/build.gradle
+++ b/spark-submission-worker/build.gradle
@@ -25,6 +25,7 @@ dependencies {
   implementation(libs.slf4j.api)
 
   implementation(libs.spark.kubernetes) {
+    exclude group: "com.esotericsoftware"
     exclude group: "com.github.luben"
     exclude group: "com.ibm.icu"
     exclude group: "com.ning"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to