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

schema-registry.schemaMeta is unpredictable #85

Open
PHaroZ opened this issue Jan 22, 2020 · 0 comments
Open

schema-registry.schemaMeta is unpredictable #85

PHaroZ opened this issue Jan 22, 2020 · 0 comments

Comments

@PHaroZ
Copy link
Contributor

PHaroZ commented Jan 22, 2020

Hi,

When schema-registry load a schema it had them into this.schemaMeta, keyed by the topic name schemaObj.topic. Unfortunately the content of schemaMeta is unpredictable if some topics also have a schema for their key.
Because 2 schemas are loaded for each topic - one for the value and one for the key - each of them are added to this.schemaMeta with the same topic name, so only the last one wins.

As this.schemaMeta doesn't seem to be used by kafka-avro I suggest to only add value schema in this.schemaMeta: this is what it's suggested by the comment on this.schemaMeta .

@PHaroZ PHaroZ mentioned this issue Jan 22, 2020
PHaroZ added a commit to PHaroZ/kafka-avro that referenced this issue Nov 2, 2020
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

1 participant