-
Notifications
You must be signed in to change notification settings - Fork 9
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
use.latest.version override is not working #18
Comments
Full traceback
|
@ekerstens, thanks for raising this issue. I didn't have time to look into it yet, but I'll try to do so this week. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This library seems to be ignoring the use.latest.version`. Using this library to serialize some data, I was getting an error like the following
After investigating the original schema, I discovered that some string fields were incorrectly defined as:
There is an issue in avro which can malform registered String types into the above union type. I stumbled upon this issue after getting the following error trying to use this library to serialize some data to a topic using a schema which was malformed in this way. The error I got was as follows and only after investigating I discovered that my schema which got registered in my schema registry had the above problem.
I found a suggested workaround using
use.latest.version
but it was not working. I then tried switching to usingAvro.default.toRecord
to manually convert my data class into aGenericRecord
and then configuring my producer to useKafkaAvroSerializer
. This worked. Based on this behavior, I think that theKafkaAvro4kSerializer
is not using the latest schema version despite settinguse.latest.version
.The text was updated successfully, but these errors were encountered: