[SPARK-56318][BUILD][4.1] Upgrade jackson to 2.21.2#55135
Conversation
|
@dongjoon-hyun @pan3793 Please help take a look, thanks! |
|
We generally don't upgrade minor versions of dependencies in the release branches. Is it possible to have a patched Jackson 2.20.x? Or is Jackson 2.21 fully compatible(e.g., no default behavior change, no removal of deprecated API) with 2.20? cc @pjfanning, could you provide some info? |
|
@pan3793 Looking at the release notes, there is only one patch between 2.20.0 and 2.21. Also, |
|
@manuzhang Jackson has a dozen code repos ... the CI failure is likely caused by jackson-module-scala pulling a new Scala version. |
655b338 to
9bbb1db
Compare
|
Jackson 2.21 is LTS while 2.20 is not. 2.21.3 has been released. |
Alright, I used to think that Jackson's minor versions have the same support policy ... cc @holdenk @dongjoon-hyun, do we want to accept such an upgrade for branch-4.1? |
|
@pan3793 @holdenk @dongjoon-hyun gentle ping. What are your thoughts on this upgrade? |
|
Seems like a reasonable upgrade but lets address the CI issue. |
|
@holdenk Thanks for quick response. I don't think the CI failure is related. |
1b5bc71 to
51869cb
Compare
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.scala-lang</groupId> | ||
| <artifactId>scala-library</artifactId> | ||
| </exclusion> | ||
| </exclusions> |
There was a problem hiding this comment.
This makes me anxious, if jackson is depending on a higher version of the scala-library we probably need to bump our scala version not exclude their scala library otherwise I suspect we would see weirdness in runtime with Jackson that will be difficult to track down. I'm open to the idea i'm wrong though.
There was a problem hiding this comment.
It's just 2.13.18 and 2.13.17. We can remove the exclusion once they are aligned but I don't think it's blocking.
There was a problem hiding this comment.
I think this should be fine, as the commit history of jackson-module-scala does not indicate any incompatible issues between the scala 2.13.18 and 2.13.17
|
I will merge this after CI is back to normal |
|
@pan3793 The CI passes now. Do you have more comments? |
|
@manuzhang The branch-4.1 and branch-4.0 CI builds are broken, and the recent fixes on master haven't been fully backported. |
### What changes were proposed in this pull request? Fixes vulnerability GHSA-72hv-8253-57qq ### Why are the changes needed? jackson-core 2.20.0 is affected. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #55135 from manuzhang/upgrade-jackson-spark4.1. Authored-by: Manu Zhang <OwenZhang1990@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
|
thanks, merged to branch-4.1 for 4.1.2 |
What changes were proposed in this pull request?
Fixes vulnerability GHSA-72hv-8253-57qq
Why are the changes needed?
jackson-core 2.20.0 is affected.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests.
Was this patch authored or co-authored using generative AI tooling?
No.