-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Better Error Message for Schema Evolution Failure #4647
Comments
Schema evolution is now fixed with #4717 but the error message isn't very good...
There are two TODOs to come out of this:
Furthermore, the |
Can we look to fix this error message soon? It's not very helpful, and requires the user to go to the Schema Registry log to see the cause, e.g.:
|
Hey @rmoff , what ksqlDB version were you running in October when you reported that this error message still hadn't been fixed? I tried replicating the issue just now but it appears to have been fixed:
Note that I had to try reproducing with a CSAS statement rather than another CS statement since ksqlDB no longer registers new schemas for CS statements if there's already an existing one in Schema Registry.
The second TODO has already been completed in #6452, so unless I've missed something here this issue can be closed. |
@vcrfxia good question :D I should have included that. |
Today we check for avro schema compatibility when we create a new schema registry subject:
https://github.com/confluentinc/ksql/blob/master/ksql-engine/src/main/java/io/confluent/ksql/engine/EngineExecutor.java#L293
This has a lot of avro-specific code that we should make more generic. It probably also doesn't belong when making the sink DDL but when we create the topic.
Either way, we should make sure that this evolution check is there for both JSON and PROTOBUF when using schema registry.
Also see #4219, which will hopefully fix this issue as well.
The text was updated successfully, but these errors were encountered: