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

Document potential null values in the after field for lookup full update type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 2.7.0.Alpha1
    • 2.6.1.Final
    • documentation
    • None

      The after can contain an unexpected null value when capture.mode.full.upde.type is set to lookup and the document was removed (in some way) before the lookup takes place.

      This can happen in two scenarios

      1) Consecutive update-delete
      Generally known, however it should likely be documented explcitly

      2) Updating a property which is part of the sharding key
      Based on user findings, when property which is part of the sharding key is updated Mongo might move that document to a different shard. In such cases the lookup might also fail to locate the document. Resulting in null value for fullDocument (and thus DBZ's after filed).

              broldan@redhat.com Robert Roldan
              jcechace@redhat.com Jakub Čecháček
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: