You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Omer van Kloeten (JIRA)" <ji...@apache.org> on 2019/06/18 11:55:00 UTC

[jira] [Created] (KAFKA-8553) Kafka Connect Schema Compatibility Checks for Name Changes

Omer van Kloeten created KAFKA-8553:
---------------------------------------

             Summary: Kafka Connect Schema Compatibility Checks for Name Changes
                 Key: KAFKA-8553
                 URL: https://issues.apache.org/jira/browse/KAFKA-8553
             Project: Kafka
          Issue Type: Bug
          Components: KafkaConnect
            Reporter: Omer van Kloeten


{{SchemaProjector.checkMaybeCompatible}} checks whether the Connect schema is compatible with another one. This is used for projection when using {{schema.compatibility}}.

Unfortunately, nowhere is it documented that if you change the name of the schema, this would break compatibility entirely.

For instance, the following two Avro schemas are fully compatible, but Connect says they're not:

{{{}}
{{  "type": "record",}}
{{  "name": "Foo1",}}
{{  "namespace":"example",}}
{{  "fields": [}}
{{  ]}}
{{ }}}

{{{}}
{{  "type": "record",}}
{{  "name": "Foo2",}}
{{  "namespace":"example",}}
{{  "fields": [}}
{{    {"name": "bar", "type": ["null", "string"]}}}
{{  ]}}
{{}}}

This is either the expected behavior and is not documented or unexpected behavior and is a bug.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)