Claus Ibsen created CAMEL-27870:
-----------------------------------
Summary: 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
Fix For: 4.25.0
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_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)