Skip to content
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

Failure when producing events with the latest version 3.7.3 #724

Closed
MSdracanovic opened this issue Sep 27, 2023 · 2 comments
Closed

Failure when producing events with the latest version 3.7.3 #724

MSdracanovic opened this issue Sep 27, 2023 · 2 comments

Comments

@MSdracanovic
Copy link

Hello,
We are using Aiven Karapace REST API to publish event from our ERP to other entities in our company.
Recently with automatic maintenance update we got update from version 3.6.2 to version 3.7.3

After update we can produce any event from our system

error that we are receiving is

{ "error_code": 42205, "message": "Invalid schema. format = AVRO, schema_id = 7" }

We tested with simple example and got same result
schema
{ "fields": [ { "name": "age", "type": "int" } ], "name": "Obj", "type": "record" }

payload
{ "value_schema_id": 7, "records":[ { "value":{ "age":55 } } ] }

Current Content-Type in header is application/vnd.kafka.avro.v2+json
When we change to application/vnd.kafka.json.v2+json we can produce message but our consumers can not consume it.

We want to avoid downgrade and to solve this issue.
Do you have any proposal on this.

Thanks in Advance

@tvainika
Copy link
Contributor

We have identified that in pull request #664 was additional validation with schema registered under matching subject, which was not fully backward compatible. This change was published with Karapace 3.7.0 in July.

If you are Aiven customer, please contact via Aiven support to get your services mitigation for this issue.

Our long term plan is to add configuration toggle for schema registered under a subject to validate the content when producing to a topic. But this can take some days to became available with next Karapace release.

@MSdracanovic
Copy link
Author

Thank for quick response.
After we recreate schema with format name topicname-value and topicname-key we manage to produce events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants