Open briancullen opened 11 months ago
Only just came across this https://github.com/quarkusio/quarkus/issues/16804 which seems to be the same issue. It does appear that setting quarkus.test.flat-class-path=true
in the application.properties does sort the issue.
If that is the expected way of doing it we can close this ticket although I don't know if it would be worth updating the documentation in that case?
Hey @ppalaga, would you have some insight about this?
Hey @ppalaga, would you have some insight about this?
Sorry, #16804 was long time ago. Moreover, it was solved by Stuart who has not posted any explanation back then. Not sure who is the current class loading subject matter expert. @maxandersen might know?
Describe the bug
We are previously using quarkus versions less that < 2.8 and are trying to upgrade to the latest version but we are having issues with the changes that have occurred with how AVRO is handled.
We are using gradle with a number of subprojects. As these services defined by these subprojects tend to communicate over kafka we separated out the avro (along with some related Java classes) to it's own subproject which the consumers and producers then add as an implementation dependency. Unfortunately when we try this on newer version of quarkus, specifically those that print an error message requiring us to import the quarkus-confluent-registry-avro extension things break.This seems to be after Quarkus 2.8
It appears that this is just a class loader issue related to tests as the service runs fine otherwise.
Expected behavior
Integration tests should be able to serialize and deserialize avro objects that are also used by non-test code.
Actual behavior
How to Reproduce?
Download the master branch of https://github.com/briancullen/quakus-avro-sample and run the integration tests for either the consumer or the producer.
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.2" 2022-01-18
Quarkus version or git rev
3.5.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.2.1
Additional information
This was originally reported in https://github.com/quarkusio/quarkus/issues/31650 but I was unable to make the reproducer work at the time. In the end we didn't need to move the service involved but this has now become an issue with a different service.