Open luneo7 opened 6 days ago
/cc @Karm (mandrel), @alesj (kafka), @cescoffier (kafka), @galderz (mandrel), @ozangunalp (kafka), @zakkak (mandrel,native-image)
I know that we had some changes related to class loading, but they were reverted in 3.12.1 right? As with Quarkus 3.8 it works as expected, but with 3.12.1 it doesn't work... so dunno if it might be to class loading changes...
So, this happens since 3.9 =] Tested, up to 3.8 up to 3.8.5 and there it doesn't happen...
This is highly unlikely to be a Quarkus issue
Describe the bug
Using Quarku 3.12.1 + Kafka + DD when building native we randomly get errors as:
Expected behavior
Build passes as with Quarkus 3.8
Actual behavior
Build fails with random
Discovered unresolved field during parsing ... __datadogContext
error, with random classes.How to Reproduce?
application.properties
quarkus.native.container-runtime-options
config so the path todd-java-agent-1.35.2.jar
is the correct oneRun the build with
mvn clean package -Dquarkus.native.container-build=true -Pnative -DskipTests=true
Sometimes the build passes, so you might need to kick it a few times... funny thing is that in the CI it fails (almost all the time) more than locally...
Output of
uname -a
orver
Darwin C02C32WQMD6R 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "21.0.3" 2024-04-16 LTS OpenJDK Runtime Environment Liberica-NIK-23.1.3-2 (build 21.0.3+10-LTS) OpenJDK 64-Bit Server VM Liberica-NIK-23.1.3-2 (build 21.0.3+10-LTS, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.12.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /usr/local/Cellar/maven/3.9.5/libexec Java version: 21.0.3, vendor: BellSoft, runtime: /Library/Java/JavaVirtualMachines/bellsoft-liberica-vm-full-openjdk21-23.1.3/Contents/Home Default locale: en_CA, platform encoding: UTF-8 OS name: "mac os x", version: "14.5", arch: "x86_64", family: "mac"
Additional information
Also created an issue in DD: https://github.com/DataDog/dd-trace-java/issues/7281