[ 
https://issues.apache.org/jira/browse/OPENJPA-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18111056#comment-18111056
 ] 

ASF subversion and git services commented on OPENJPA-2962:
----------------------------------------------------------

Commit f7bf0e2cc0a575bee320088fb114175e3553ebc1 in openjpa's branch 
refs/heads/master from Paulo Cristovão de Araújo Silva Filho
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f7bf0e2cc ]

Merge pull request #177 from apache/OPENJPA-2962

[OPENJPA-2962] Do not create a broker to obtain a class loader

> 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
>            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)

Reply via email to