[ https://issues.apache.org/jira/browse/KAFKA-9744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jurgis Pods updated KAFKA-9744: ------------------------------- Summary: SchemaProjector fails to handle change of record namespace in Avro schema (was: SchemaProjector fails to handle backwards-compatible schema change) > SchemaProjector fails to handle change of record namespace in Avro schema > ------------------------------------------------------------------------- > > Key: KAFKA-9744 > URL: https://issues.apache.org/jira/browse/KAFKA-9744 > Project: Kafka > Issue Type: Bug > Components: KafkaConnect > Affects Versions: 2.3.1 > Reporter: Jurgis Pods > Priority: Major > > _Note_: This bug report is for CP 5.3.1 / Kafka 2.3.1, but it most likely > affects all versions. > We recently changed the namespace of inner records in Avros schemas in the > Confluent Schema Registry. Those changes were accepted as > backwards-compatible. However, when redeploying Kafka S3 connectors consuming > the relevant topics, we received error from SchemaProjector.project(), > causing the connectors to crash und stop producing data: > {code:java} > org.apache.kafka.connect.errors.SchemaProjectorException: Schema name > mismatch. source name: my.example.Record and target name: > my.example.sub.Record {code} > A change of a record's namespace is compatible according to the Schema > Registry (which internally uses a check from the Avro library), but not for > the Connect API. I would argue that the namespace/package name should not > affect compatibility, as it says nothing about the contained data and its > schema. > Would it be possible to have a more consistent (and less restrictive) check > in Connect API, so that a namespace change in the producer can be made more > confidently, without fear of breaking the consuming connectors? If, on the > other hand, you want to be strict about namespaces, then at least the schema > registry should report a namespace change as incompatible. -- This message was sent by Atlassian Jira (v8.3.4#803005)