[
https://issues.apache.org/jira/browse/CAMEL-27870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27870:
--------------------------------
Description:
Found while improving the option descriptions of camel-bean-validator for
CAMEL-23832 (commit
https://github.com/apache/camel/commit/1aaff12f7925110d68d6576bdc6977b75773cc4a,
pull request https://github.com/apache/camel/pull/31146).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. The built ValidatorFactory is never closed
{{BeanValidatorEndpoint.createProducer}} builds a ValidatorFactory
(ValidatorFactories.buildValidatorFactory) when none is set, but nothing calls
close() on it, so its caches leak for each producer.
Proposed change: close it in doStop when the producer built it (never one the
user supplied).
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-bean-validator for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31146).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. The built ValidatorFactory is never closed
{{BeanValidatorEndpoint.createProducer}} builds a ValidatorFactory
(ValidatorFactories.buildValidatorFactory) when none is set, but nothing calls
close() on it, so its caches leak for each producer.
Proposed change: close it in doStop when the producer built it (never one the
user supplied).
_Claude Code on behalf of davsclaus_
> camel-bean-validator: a ValidatorFactory built by the endpoint is never closed
> ------------------------------------------------------------------------------
>
> Key: CAMEL-27870
> URL: https://issues.apache.org/jira/browse/CAMEL-27870
> Project: Camel
> Issue Type: Bug
> Components: camel-bean-validator
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-bean-validator for
> CAMEL-23832 (commit
> https://github.com/apache/camel/commit/1aaff12f7925110d68d6576bdc6977b75773cc4a,
> pull request https://github.com/apache/camel/pull/31146).
> This is a separate problem of the component; the descriptions change only
> documents the current behavior.
> h4. The built ValidatorFactory is never closed
> {{BeanValidatorEndpoint.createProducer}} builds a ValidatorFactory
> (ValidatorFactories.buildValidatorFactory) when none is set, but nothing
> calls close() on it, so its caches leak for each producer.
> Proposed change: close it in doStop when the producer built it (never one the
> user supplied).
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)