bmgkp opened a new issue, #7970:
URL: https://github.com/apache/camel-quarkus/issues/7970
### Bug description
In testing trying to consume data for 2 different Avro schemata leads to an
exception.
-----------------------
We are using
QuarkusCamel: 3.27.0
but got this bug also in 3.20.3
-----------------------
Trying to consume data for 2 different Avro schemata leads to an exception:
`org.apache.kafka.common.errors.SerializationException: Could not find class
RestCallTrace specified in writer's schema whilst finding reader's schema for a
SpecificRecord.`
The Route is built up like:
from("direct:kafka")
.routeId("FromDirect")
.process(Routes::transformToRestCallTraceOne)
.to(getKafkaFirst())
.process(Routes::transformToRestCallTraceTwo)
.to(getKafkaSecond());
using 2 Kafka Topics and a total of 2 Avro Schemata involved. One Schema is
used in a topic exclusively.
Tests are failing consuming data from the second kafka topic.
---
Seems that the
org.apache.avro.specific.SpecificData#classCache
in
org.apache.avro.specific.SpecificData#getClass
is filled using the wrong classloader while writing the data.
In following consuming cached entry is faulty and the consuming fails.
---
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]