LuciferYang opened a new pull request, #2834:
URL: https://github.com/apache/uniffle/pull/2834

   ### What changes were proposed in this pull request?
   
   - Bump jackson-core and jackson-databind from 2.10.0 to 2.18.12. Spark 4.0 
is on the same 2.18 line. The spark4, spark4.1 and spark4.2 profiles drop their 
2.12.7 override, so every profile gets 2.18.12.
   - Manage jackson-annotations. The server and coordinator jars shade 
jackson-databind and jackson-core but not jackson-annotations, so the 
annotations on their classpath have to be at least as new as that databind. The 
Spark integration tests run the servers next to Spark's own Jackson, and under 
`-Pspark3` they failed with `NoClassDefFoundError: 
com/fasterxml/jackson/annotation/JsonIncludeProperties` without this entry. The 
managed version is 2.18.12, or 2.20 and 2.21 in the spark4.1 and spark4.2 
profiles, where Spark's databind needs them.
   - The spark2 modules drop their explicit jackson-annotations version and use 
the managed one.
   
   ### Why are the changes needed?
   
   This closes the 18 Dependabot alerts on jackson-databind and jackson-core in 
`pom.xml`.
   
   Dependabot does not read the 2.12.7 override in the spark4.x profiles, and 
that version went into the Spark 4 shaded clients. The GitHub advisory database 
has 17 advisories against jackson-databind and jackson-core 2.12.7 and none 
against 2.18.12. Hadoop 3.4.1 does not need the override, because 
`hadoop-client-runtime` relocates its own Jackson.
   
   ### Does this PR introduce _any_ user-facing change?
   
   The server, coordinator, CLI and the shaded clients bundle Jackson 2.18.12. 
Since 2.15, Jackson rejects input past default read limits: 20,000,000 
characters in a string value, 50,000 in a field name, 1,000 digits in a number 
and 1,000 levels of nesting. Uniffle parses REST request bodies, coordinator 
responses in the CLI and the storage-media environment variable with Jackson, 
and none of them gets close to those limits.
   
   ### How was this patch tested?
   
   No new tests. I compared the jar lists under `server`, `coordinator` and 
`cli` `target/jars`, and the `pom.properties` in the seven shaded client jars, 
before and after this change. Only the Jackson versions differ. 
`dependency:tree` under every Spark, MR, Tez, hadoop3.2 and dashboard profile 
shows jackson-databind and jackson-core 2.18.12 for all Uniffle modules except 
the Spark integration test modules, which pin Jackson to Spark's version 
through `jackson.version`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to