You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "oscerd (via GitHub)" <gi...@apache.org> on 2026/09/16 07:33:27 UTC
[PR] CAMEL-24729: camel-infinispan - report an expiry that is missing its time unit (backport to camel-4.22.x) [camel]
oscerd opened a new pull request, #26490:
URL: https://github.com/apache/camel/pull/26490
Backport of #26427 (CAMEL-24729) to `camel-4.22.x`, as flagged by the `port/camel-4.22.x` label.
An expiry needs both an amount and the unit it is expressed in, and the producer requires both headers
before applying one. With only one of a pair set the condition was false and the write fell through to the
plain `cache.put(key, value)` overload, so a route setting `CamelInfinispanLifespanTime` without
`CamelInfinispanTimeUnit` stored an entry that **never expires**, with nothing in the log to say the expiry
had been dropped. Same for the max-idle pair, across the eight operations that can carry an expiry, and
neither value has an endpoint option to fall back on.
Each pair is now reported at WARN the first time a producer sees it — a route that gets this wrong gets it
wrong for every message, so this does not repeat per exchange. The entry is still stored and a message
carrying neither header stays silent.
### Not a byte-identical cherry-pick — one mechanical addition
The diff against #26427 is not empty, so flagging it rather than letting a reviewer find it: this adds the
`LOG` field and its two `org.slf4j` imports to `InfinispanProducer`.
On `main` that logger is already there, because the QUERY warning from CAMEL-24623 was later lifted into the
shared producer. On this branch that dedup never happened — each subclass still keeps its own
`warnNoQueryBuilder` and its own logger — so the shared producer had none to reuse and the cherry-pick
would not compile without it. No behaviour differs from `main` beyond that.
### Verification
`mvn clean install -DskipITs` on `components/camel-infinispan` is green on this branch — 94 embedded tests
and 13 remote.
The warning was checked against the log rather than assumed green: a clean run writes exactly **4** lines to
`target/camel-infinispan-test.log`, one per pair per producer instance, from a test that calls each check
twice — the same count observed on `main`. Without the once-per-producer guard the same test would write 6.
Built the whole `camel-infinispan` aggregate rather than the single module, so `camel-infinispan-common` is
compiled in-reactor: a module-scoped build resolves it from `~/.m2`, where a concurrent build of the same
SNAPSHOT can leave a jar without these changes.
---
_Claude Code on behalf of oscerd_
🤖 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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-24729: camel-infinispan - report an expiry that is missing its time unit (backport to camel-4.22.x) [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26490:
URL: https://github.com/apache/camel/pull/26490#issuecomment-5694238618
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `components/camel-infinispan/camel-infinispan-common`
- `components/camel-infinispan/camel-infinispan-embedded`
---
<details><summary>:microscope: Scalpel shadow comparison — Scalpel: 13 tested, 29 compile-only — current: 13 all tested</summary>
[Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **42 affected modules** (current approach: 13).
<details><summary>:warning: Modules only in Scalpel (29)</summary>
- `apache-camel`
- `camel-allcomponents`
- `camel-catalog`
- `camel-catalog-console`
- `camel-catalog-lucene`
- `camel-catalog-maven`
- `camel-catalog-suggest`
- `camel-componentdsl`
- `camel-csimple-maven-plugin`
- `camel-endpointdsl`
- `camel-endpointdsl-support`
- `camel-itest`
- `camel-jbang-core`
- `camel-jbang-it`
- `camel-jbang-main`
- `camel-jbang-plugin-edit`
- `camel-jbang-plugin-generate`
- `camel-jbang-plugin-kubernetes`
- `camel-jbang-plugin-test`
- `camel-kamelet-main`
- `camel-launcher`
- `camel-report-maven-plugin`
- `camel-route-parser`
- `camel-yaml-dsl`
- `camel-yaml-dsl-deserializers`
- `camel-yaml-dsl-maven-plugin`
- `coverage`
- `docs`
- `dummy-component`
</details>
**Skip-tests mode would test 13 modules** (2 direct + 11 downstream), **skip tests for 29** (generated code, meta-modules)
<details><summary>Modules Scalpel would test (13)</summary>
- `camel-infinispan`
- `camel-infinispan-common`
- `camel-infinispan-embedded`
- `camel-jbang-mcp`
- `camel-jbang-plugin-mcp`
- `camel-jbang-plugin-route-parser`
- `camel-jbang-plugin-tui`
- `camel-jbang-plugin-validate`
- `camel-langchain4j-embeddings`
- `camel-langchain4j-embeddingstore`
- `camel-launcher-container`
- `camel-yaml-dsl-validator`
- `camel-yaml-dsl-validator-maven-plugin`
</details>
<details><summary>Modules with tests skipped (29)</summary>
- `apache-camel`
- `camel-allcomponents`
- `camel-catalog`
- `camel-catalog-console`
- `camel-catalog-lucene`
- `camel-catalog-maven`
- `camel-catalog-suggest`
- `camel-componentdsl`
- `camel-csimple-maven-plugin`
- `camel-endpointdsl`
- `camel-endpointdsl-support`
- `camel-itest`
- `camel-jbang-core`
- `camel-jbang-it`
- `camel-jbang-main`
- `camel-jbang-plugin-edit`
- `camel-jbang-plugin-generate`
- `camel-jbang-plugin-kubernetes`
- `camel-jbang-plugin-test`
- `camel-kamelet-main`
- `camel-launcher`
- `camel-report-maven-plugin`
- `camel-route-parser`
- `camel-yaml-dsl`
- `camel-yaml-dsl-deserializers`
- `camel-yaml-dsl-maven-plugin`
- `coverage`
- `docs`
- `dummy-component`
</details>
> :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
</details>
<details><summary>All tested modules (42 modules)</summary>
- Camel :: AI :: LangChain4j :: Embedding
- Camel :: AI :: LangChain4j :: EmbeddingStore
- Camel :: All Components Sync point
- Camel :: Assembly
- Camel :: Catalog :: CSimple Maven Plugin (deprecated)
- Camel :: Catalog :: Camel Catalog
- Camel :: Catalog :: Camel Report Maven Plugin
- Camel :: Catalog :: Camel Route Parser
- Camel :: Catalog :: Console
- Camel :: Catalog :: Dummy Component
- Camel :: Catalog :: Lucene (deprecated)
- Camel :: Catalog :: Maven
- Camel :: Catalog :: Suggest
- Camel :: Component DSL
- Camel :: Coverage
- Camel :: Docs
- Camel :: Endpoint DSL
- Camel :: Endpoint DSL :: Support
- Camel :: Infinispan :: Common
- Camel :: Infinispan :: Embedded
- Camel :: Infinispan :: Remote
- Camel :: Integration Tests
- Camel :: JBang :: Core
- Camel :: JBang :: Integration tests
- Camel :: JBang :: MCP
- Camel :: JBang :: Main
- Camel :: JBang :: Plugin :: Edit
- Camel :: JBang :: Plugin :: Generate
- Camel :: JBang :: Plugin :: Kubernetes
- Camel :: JBang :: Plugin :: MCP
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: TUI
- Camel :: JBang :: Plugin :: Testing
- Camel :: JBang :: Plugin :: Validate
- Camel :: Kamelet Main
- Camel :: Launcher
- Camel :: Launcher :: Container
- Camel :: YAML DSL
- Camel :: YAML DSL :: Deserializers
- Camel :: YAML DSL :: Maven Plugins
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator Maven Plugin
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/35069133499)
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-24729: camel-infinispan - report an expiry that is missing its time unit (backport to camel-4.22.x) [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #26490:
URL: https://github.com/apache/camel/pull/26490#issuecomment-5693774300
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-24729: camel-infinispan - report an expiry that is missing its time unit (backport to camel-4.22.x) [camel]
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #26490:
URL: https://github.com/apache/camel/pull/26490
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org