flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
59 stars 22 forks source link

Autogenerated key schemas are saved to the schema registry even when not producing #159

Closed rzmong closed 1 year ago

rzmong commented 2 years ago

When setting up a consumer with an avro_schema_registry backend, if key schema is not found within the schema_store deimos will autogenerate a key schema and propagate it to the schema registry. A consumer should not be creating or updating the schemas of a topic that it does not also produce.

New producers may pick up the autogenerated schema, which may overwrite any existing doc string.

https://github.com/flipp-oss/deimos/blob/master/lib/deimos/schema_backends/avro_base.rb#L31