Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-1154

Prevent frequent schema changes in MongoDB connector using Avro converter

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • mongodb-connector
    • None

    Description

      When using MongoDB connector with Avro converter, and UnwrapFromMongoDbEnvelope, schema changes at a very frequent pace, the result is Too many schemas created error from schema-registry, or a slow down in Kafka-connect worker.

      There are 2 reasons for this behavior:
      1. Frequent schema changes in a mongoDB collection.
      2. Changes in field order sent to schema-registry.

      Proposed solution is to cache schema per topic, and add new fields to it as optional fields so schema will evolve to contain all fields, this will be done while keeping the order of the fields.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dshalev Daniel Shalev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: