[ 
https://issues.apache.org/jira/browse/SOLR-18325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108756#comment-18108756
 ] 

Eric Pugh commented on SOLR-18325:
----------------------------------

i was just looking at this the other night, and yeah, seems like something to 
be done.   I don't know how big the impact is to consumers?   It may be a Solr 
11 thing?   It feels like it would be too much to do in Solr 10?   Wish we had 
done this for 10.0 ;-(.

>  Upgrade Jackson from 2.x to 3.x (tools.jackson)
> ------------------------------------------------
>
>                 Key: SOLR-18325
>                 URL: https://issues.apache.org/jira/browse/SOLR-18325
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>    Affects Versions: 10.0
>            Reporter: Bernd Wahlen
>            Priority: Minor
>
> SolrJ (and Solr generally) depends on Jackson 2.x (com.fasterxml.jackson.*); 
> solr-solrj:10.0.0 pulls jackson-databind:2.20. Jackson 3 is released, with 
> 3.1 as the recommended stable line.
> Because Jackson 3 changed its Maven coordinates and packages 
> (com.fasterxml.jackson.core/databind → 
> tools.jackson.core/tools.jackson.databind), it can coexist with Jackson 2 on 
> a classpath — but that's the problem downstream: applications that have moved 
> to Jackson 3 (e.g. anything on Spring Boot 4, which now defaults to Jackson 
> 3) and also use SolrJ are forced to ship both Jackson runtimes, since SolrJ 
> keeps Jackson 2. Filing this to track the upgrade for a major release where 
> the coordinate/package change is acceptable.
> Motivation
> - Align with the current Jackson line (3.1 stable); Jackson 2 will eventually 
> EOL.
> - Let Jackson-3 downstreams avoid bundling two Jackson runtimes when they use 
> SolrJ.
> Scope / considerations
> - Package/coordinate change across the codebase: 
> com.fasterxml.jackson.{databind,core} → tools.jackson.{databind,core}. 
> Annotations are unaffected — they stay com.fasterxml.jackson.annotation 
> (Jackson 3 depends on jackson-annotations 2.20+ by design), so @JsonProperty 
> etc. don't change.
> - API changes: ObjectMapper is immutable/builder-based 
> (JsonMapper.builder()…build()); exceptions are unchecked now 
> (tools.jackson.core.JacksonException replaces JsonProcessingException).
> - Jackson 3.0 is not LTS — target 3.1.x.
> - Needs alignment across all Solr modules (server, solrj, contribs).
> - Breaking coordinate change → natural fit for the next major (11.0, already 
> in dev per SOLR-18003).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to