[GitHub] [openjpa] eolivelli opened a new pull request #66: Fix SelectImpl#getColumnAlias in case of DBDictionary that use delimiters aggressively

2020-07-14 Thread GitBox
eolivelli opened a new pull request #66: URL: https://github.com/apache/openjpa/pull/66 This is a draft PR. I am trying to run all of the integration tests against HerdDB. HerdDBDictionary enables aggressive use of delimiters, in order to not have problems with the the long list of re

[GitHub] [openjpa] rmannibucau commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658559477 @struberg agree on A, B is true but likely slower than this exclusion list (even if not sexy it is faster than a hashset in most cases and consumes way less constant mem ;)), C

[GitHub] [openjpa] rmannibucau commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454804045 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(

[GitHub] [openjpa] struberg commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
struberg commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658421421 I still wonder if this whole `_transforming` boolean is a bit gone wrong? A.) it is set in a different method than cleared! For no apparent reason. This is not per se wrong,

[GitHub] [openjpa] dazey3 commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
dazey3 commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454610970 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(MetaD

[GitHub] [openjpa] dazey3 commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
dazey3 commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454610970 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(MetaD

[GitHub] [openjpa] dazey3 commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
dazey3 commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454610970 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(MetaD

[GitHub] [openjpa] dazey3 commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
dazey3 commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454610970 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(MetaD

[GitHub] [openjpa] struberg commented on a change in pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
struberg commented on a change in pull request #65: URL: https://github.com/apache/openjpa/pull/65#discussion_r454594620 ## File path: openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java ## @@ -118,17 +120,44 @@ public PCClassFileTransformer(Met

[GitHub] [openjpa] rmannibucau edited a comment on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau edited a comment on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658359342 @jgrassel not with 3.1.2 (:() but with a patched 3.1.3-SNAPSHOT (still trying to find a good solution we both agree on before merging/pushing). Just meant I can reproduc

[GitHub] [openjpa] rmannibucau commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658359342 @jgrassel not with 3.1.2 (:() but with a patched 3.1.3-SNAPSHOT (still trying to find a good solution we both agree on before merging/pushing)

[GitHub] [openjpa] jgrassel edited a comment on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
jgrassel edited a comment on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658357931 Ok, glad to hear that it worked with 3.1.2 (the patch that is)! This is an automated message from the Apache

[GitHub] [openjpa] jgrassel commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
jgrassel commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658357931 Ok, glad to hear that it worked with 3.1.2! This is an automated message from the Apache Git Service. To respond to

[GitHub] [openjpa] rmannibucau commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658353355 @jgrassel yes it violates but it is important to have it when startup time is needed otherwise you basically potentially load all your app twice for nothing (or load it all in m

[GitHub] [openjpa] jgrassel commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
jgrassel commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658350601 @rmannibucau That optimization sounds like a violation of the PersistenceUnitInfo contract: ``` /** * Return a new instance of a ClassLoader that the provider may * use

[GitHub] [openjpa] rmannibucau commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658349573 @jgrassel thanks a lot, I was able to test it on 3.1.2 too and also checked the proposed patch in my PR fixes that issue. --

[GitHub] [openjpa] jgrassel commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
jgrassel commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658340904 I was able to reproduce the enhancement failure issue with OpenJPA 3.1.0 this way on Open Liberty. This is an auto

[GitHub] [openjpa] jgrassel commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
jgrassel commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658339925 Here's a version of the test bucket that will run with the jpa-2.2 complaint version of OpenJPA You'll need to edit the pom.xml file at the project root, and put in the ful

[GitHub] [openjpa] rmannibucau commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658338171 @jgrassel The threadlocal - as the boolean today - just skips the transformer, so it means that if a class must be enhanced and is loaded while another is enhanced then it is sk

[GitHub] [openjpa] jgrassel commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
jgrassel commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658326420 Yeah, I noticed that commons was excluded after taking a second look through the change set, my comment update wasn't fast enough. =). I'm not sure I'm clear on why the ThreadLocal

[GitHub] [openjpa] rmannibucau commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658324978 @jgrassel commons is excluded and the jdk as well, just to skip reading the bytecode (which is more costly than this exclusion list if you benchmark both options so overall the

[GitHub] [openjpa] rmannibucau edited a comment on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau edited a comment on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658324978 @jgrassel commons is excluded and the jdk as well, just to skip reading the bytecode (which is more costly than this exclusion list if you benchmark both options so overa

[GitHub] [openjpa] jgrassel edited a comment on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
jgrassel edited a comment on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658319959 I've already stated I'm not a fan of the exclusion list, for something that's going to be called once for every class that has to be checked to be enhanced, let alone be enh

[GitHub] [openjpa] jgrassel edited a comment on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
jgrassel edited a comment on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658319959 I've already stated I'm not a fan of the exclusion list, for something that's going to be called once for every class that has to be checked to be enhanced, let alone be enh

[GitHub] [openjpa] jgrassel commented on pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
jgrassel commented on pull request #65: URL: https://github.com/apache/openjpa/pull/65#issuecomment-658319959 I've already stated I'm not a fan of the exclusion list, for something that's going to be called once for every class that has to be checked to be enhanced, let alone be enhanced,

[GitHub] [openjpa] rmannibucau commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658318212 Created https://github.com/apache/openjpa/pull/65 as a proposed fix on master if you want to give it a try.

[GitHub] [openjpa] rmannibucau opened a new pull request #65: [OPENJPA-2817] dropping _transforming from PCClassFileTransformer and replace it by a minimal exclusion list

2020-07-14 Thread GitBox
rmannibucau opened a new pull request #65: URL: https://github.com/apache/openjpa/pull/65 Follow up PR of https://github.com/apache/openjpa/pull/64 Goal is to let people test this proposed fix to ensure we didn't miss anything in the analyzis. --

[jira] [Commented] (OPENJPA-2817) OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread ASF subversion and git services (Jira)
[ https://issues.apache.org/jira/browse/OPENJPA-2817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17157536#comment-17157536 ] ASF subversion and git services commented on OPENJPA-2817: -- Co

[GitHub] [openjpa] rmannibucau edited a comment on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau edited a comment on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658034247 @struberg point is that the classloader does it and the transformer is called under that lock already @jgrassel will test your sample but today I'm off but I will come

[GitHub] [openjpa] rmannibucau edited a comment on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau edited a comment on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658034247 @struberg point is that the classloader does it and the transformer is called under that lock already @jgrassel will test your sample but today I'm off but I will come

[GitHub] [openjpa] rmannibucau commented on pull request #64: [2.2.x] OPENJPA-2817: OpenJPA enhancer needs improved reentrancy

2020-07-14 Thread GitBox
rmannibucau commented on pull request #64: URL: https://github.com/apache/openjpa/pull/64#issuecomment-658034247 @struberg point is that the classloader does it and the transformer is called under that lock already @jgrassel will test your sample but today I'm off but I will come back to