[
https://issues.apache.org/jira/browse/OPENJPA-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maxim Solodovnik reassigned OPENJPA-2962:
-----------------------------------------
Assignee: Richard Zowalla
> Schema-gen methods leak a Broker just to get classloader
> --------------------------------------------------------
>
> Key: OPENJPA-2962
> URL: https://issues.apache.org/jira/browse/OPENJPA-2962
> Project: OpenJPA
> Issue Type: Sub-task
> Components: jpa
> Affects Versions: 4.2.0
> Reporter: Maxim Solodovnik
> Assignee: Richard Zowalla
> Priority: Major
> Fix For: 4.2.0
>
>
> Discussion thread:
> https://github.com/apache/openjpa/pull/144#discussion_r3683001994
> **(medium)** `createPersistenceStructure`, `dropPersistenceStrucuture`,
> `validatePersistenceStruture` and `truncateData` each create a Broker via
> `super.newBrokerImpl(...)` that is only used for `getClassLoader()` and never
> closed - a broker (and its resources) leaked per call. Can the classloader be
> obtained without instantiating a broker?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)