Croway opened a new pull request, #31194:
URL: https://github.com/apache/camel/pull/31194

   # Description
   
   JIRA: [CAMEL-27952](https://issues.apache.org/jira/browse/CAMEL-27952)
   
   [CAMEL-22692](https://issues.apache.org/jira/browse/CAMEL-22692) (Infinispan 
16 upgrade) replaced `infinispan-query-dsl` and 
`infinispan-remote-query-client`, which Infinispan 16 removed, with 
`org.infinispan:infinispan-query`. That artifact is Infinispan's **embedded** 
query engine. Hot Rod clients get the query API from `infinispan-commons` 
(`org.infinispan.commons.api.query.*`) and the remote query implementation from 
`infinispan-client-hotrod`.
   
   Neither `camel-infinispan-common` nor `camel-infinispan` references a class 
from `infinispan-query` in its main code. The only related test import 
(`MarshallerRegistration`) ships in `infinispan-commons`. Even so, the 
dependency adds 17 jars (~14.7 MB) to the runtime classpath of every user of 
the remote component:
   
   | Removed from `camel-infinispan`'s runtime classpath (main) |
   |---|
   | `org.infinispan:infinispan-query:16.3.1` |
   | 
`org.hibernate.search:hibernate-search-{engine,mapper-pojo-base,backend-lucene,util-common}:8.4.0.Final`
 |
   | 
`org.apache.lucene:lucene-{core,analysis-common,facet,highlighter,join,memory,queries,queryparser,sandbox}:9.12.3`
 |
   | `org.hibernate.models:hibernate-models:1.3.4`, `io.smallrye:jandex:3.3.2`, 
`com.carrotsearch:hppc:0.10.0` |
   
   Runtime artifacts go from 100 to 83; nothing is added.
   
   This PR removes `infinispan-query` from `camel-infinispan-common` and 
`camel-infinispan`. `camel-infinispan-embedded` keeps its own declaration, 
because an embedded cache needs the query module at runtime to run queries.
   
   **Testing** (against `quay.io/infinispan/server:16.3`):
   - `camel-infinispan`: 17 unit tests and 111 ITs pass, including 
`InfinispanRemoteQueryProducerIT` and `InfinispanRemoteQueryConsumerIT`. The 
latter covers continuous query, the case behind CAMEL-9703.
   - `camel-infinispan-embedded`: the classpath is unchanged; the embedded 
query producer/consumer tests pass.
   - `mvn clean install -DskipTests` on the affected modules leaves no 
generated changes. The tracked SBOM still lists the old dependency; the weekly 
`generate-sbom` workflow will refresh it.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
         (Run on the affected modules only: `-pl 
components/camel-infinispan/camel-infinispan-common,components/camel-infinispan/camel-infinispan`.
 No generated changes; this is a POM-only change.)
   
   # AI-assisted contributions
   
   - [ ] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   


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

Reply via email to