New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RunnerClassLoader getResources returns duplicate results #16770
Labels
Milestone
Comments
Interesting, I'll take a look next week |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Apr 24, 2021
#16782 should take care of it |
gastaldi
added a commit
that referenced
this issue
Apr 25, 2021
Ensure that RunnerClassLoader returns unique entries
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Apr 26, 2021
Fixes: quarkusio#16770 (cherry picked from commit 715ca5a)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Apr 26, 2021
Fixes: quarkusio#16770 (cherry picked from commit 715ca5a)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I was updating from 1.12.2 to 1.13.2, and noticed that drools is not initializing anymore.
The root cause seems to be this getResources call, which returns the same file paths multiple times:
https://github.com/kiegroup/droolsjbpm-knowledge/blob/master/kie-api/src/main/java/org/kie/api/internal/utils/ServiceDiscoveryImpl.java#L190
When searching for files, the same file path is listed multiple times.
This returns 8 results on 1.13.2, but returned only 4 results on 1.12.2.
For example, the first 2 results are:
Which indicates that a duplication is happening somewhere inside the RunnerClassLoader.
This bug only occurs when running as fast-jar. When starting in dev mode or as legacy-jar, only the expected 4 paths are returned.
Expected behavior
getResources should not return duplicate results.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
Output of
uname -a
orver
MSYS_NT-10.0 NANB7NLNVP2 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys
Output of
java -version
GraalVM version (if different from Java)
Quarkus version or git rev:
1.13.0.CR1, 1.13.0.Final, 1.13.1.Final, 1.13.2.Final, 2.0.0.Alpha1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\eclipse\tools\apache-maven\bin..
Java version: 11.0.7, vendor: Azul Systems, Inc., runtime: C:\eclipse\tools\zulu11.39.15-ca-jdk11.0.7-win_x64
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
The text was updated successfully, but these errors were encountered: