You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/02/10 13:44:51 UTC
[PR] Guard LRU cache creation against maxCacheSize <= 0 [camel]
Croway opened a new pull request, #21385:
URL: https://github.com/apache/camel/pull/21385
# Description
In camel cxf, for example, when maxCacheSize=0 the context startup fails with `java.lang.IllegalArgumentException: The maximum cache size must be greater than 0`.
* Add validation in setters and factory methods to reject cache size <= 0 with a clear `IllegalArgumentException`, instead of failing later in `SimpleLRUCache`
* Add defensive guards in core internal classes (`AbstractDynamicRegistry`, `DefaultRuntimeEndpointRegistry`, `DefaultEndpointUtilizationStatistics`)
* Update `@UriParam`/`@Metadata` descriptions to document the constraint
--
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] Guard LRU cache creation against maxCacheSize <= 0 [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #21385:
URL: https://github.com/apache/camel/pull/21385
--
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] Guard LRU cache creation against maxCacheSize <= 0 [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21385:
URL: https://github.com/apache/camel/pull/21385#issuecomment-3877711462
: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.
* You can label PRs using `build-all`, `build-dependents`, `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